Skip to content

Commit

Permalink
Listen on v3 too
Browse files Browse the repository at this point in the history
Fixes #346
  • Loading branch information
turt2live committed Dec 22, 2021
1 parent 1f28a40 commit 6b75d08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ caching that is now supported properly by this release, or disable caching if no
by IE11, in order to have at least some mitigation of XSS attacks.
* Added support for the `org.matrix.msc2705.animated` query parameter.
* Added support for S3 storage classes (optional).
* Added support for listening on Matrix 1.1 endpoints (`/_matrix/media/v3/*`).

### Changed

Expand Down
3 changes: 2 additions & 1 deletion api/webserver/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func Init() *sync.WaitGroup {
routes := make(map[string]route)
// r0 is typically clients and v1 is typically servers. v1 is deprecated.
// unstable is, well, unstable. unstable/io.t2bot.media is to comply with MSC2324
versions := []string{"r0", "v1", "unstable", "unstable/io.t2bot.media"}
// v3 is Matrix 1.1 stuff
versions := []string{"r0", "v1", "v3", "unstable", "unstable/io.t2bot.media"}

// Things that don't need a version
routes["/_matrix/media/version"] = route{"GET", versionHandler}
Expand Down

0 comments on commit 6b75d08

Please sign in to comment.