diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-05-17 20:25:25 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-05-17 20:25:25 -0300 |
commit | 4b01ebdcaa8d7df0ec34c758ae9f3b8ec32fdcd0 (patch) | |
tree | 850bd8a62e481a4b8beb47f64d98eac5ff7ff946 /lib/Matrix | |
parent | 4823babb29e8d2c2f65b775e72210aac7a2175c5 (diff) | |
download | perl6-matrix-client-4b01ebdcaa8d7df0ec34c758ae9f3b8ec32fdcd0.tar.gz |
Fix missing multi methods on the endpoints TODO generator
Diffstat (limited to 'lib/Matrix')
-rw-r--r-- | lib/Matrix/Client/MediaStore.rakumod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Matrix/Client/MediaStore.rakumod b/lib/Matrix/Client/MediaStore.rakumod index 34fbda3..7086083 100644 --- a/lib/Matrix/Client/MediaStore.rakumod +++ b/lib/Matrix/Client/MediaStore.rakumod @@ -46,14 +46,14 @@ method upload(IO::Path $path, Str $filename?, Str :$content-type is copy = "imag $data<content_uri> // ""; } -# GET - /_matrix/media/r0/download/{serverName}/{mediaId} +#| GET - /_matrix/media/r0/download/{serverName}/{mediaId} multi method download(Str $mxc-uri, :$allow-remote = True) { my $mxc = self.parse-mxc($mxc-uri); samewith($mxc<server-name>, $mxc<media-id>, :$allow-remote) } -# GET - /_matrix/media/r0/download/{serverName}/{mediaId} +#| GET - /_matrix/media/r0/download/{serverName}/{mediaId} multi method download(Str $server-name, Str $media-id, Bool :$allow-remote = True) { my $response = $.get( "/download/{$server-name}/{$media-id}", |