set methods to get only

This commit is contained in:
qwqtoday 2024-08-09 19:11:25 +08:00
parent 0f80b26b4e
commit 06fa53cbbb

View file

@ -166,7 +166,8 @@ func Setup(
return Threads(
req, device, syncDB, rsAPI, vars["roomId"],
)
}))
})).Methods(http.MethodGet)
v3mux.Handle("/search",
httputil.MakeAuthAPI("search", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
if !cfg.Fulltext.Enabled {