aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Client/MediaStore.rakumod
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2020-05-17 20:25:25 -0300
committerMatias Linares <matiaslina@gmail.com>2020-05-17 20:25:25 -0300
commit4b01ebdcaa8d7df0ec34c758ae9f3b8ec32fdcd0 (patch)
tree850bd8a62e481a4b8beb47f64d98eac5ff7ff946 /lib/Matrix/Client/MediaStore.rakumod
parent4823babb29e8d2c2f65b775e72210aac7a2175c5 (diff)
downloadperl6-matrix-client-4b01ebdcaa8d7df0ec34c758ae9f3b8ec32fdcd0.tar.gz
Fix missing multi methods on the endpoints TODO generator
Diffstat (limited to 'lib/Matrix/Client/MediaStore.rakumod')
-rw-r--r--lib/Matrix/Client/MediaStore.rakumod4
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}",