mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-02-15 15:34:28 -06:00
set methods to get only
This commit is contained in:
parent
0f80b26b4e
commit
06fa53cbbb
|
@ -166,7 +166,8 @@ func Setup(
|
||||||
return Threads(
|
return Threads(
|
||||||
req, device, syncDB, rsAPI, vars["roomId"],
|
req, device, syncDB, rsAPI, vars["roomId"],
|
||||||
)
|
)
|
||||||
}))
|
})).Methods(http.MethodGet)
|
||||||
|
|
||||||
v3mux.Handle("/search",
|
v3mux.Handle("/search",
|
||||||
httputil.MakeAuthAPI("search", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
|
httputil.MakeAuthAPI("search", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
|
||||||
if !cfg.Fulltext.Enabled {
|
if !cfg.Fulltext.Enabled {
|
||||||
|
|
Loading…
Reference in a new issue