mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
Clarify that POST publicRooms is implemented
This commit is contained in:
parent
fd4ea78dbf
commit
e8bee07fc1
|
|
@ -42,8 +42,8 @@ type publicRoomRes struct {
|
||||||
Estimate int64 `json:"total_room_count_estimate,omitempty"`
|
Estimate int64 `json:"total_room_count_estimate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPublicRooms implements GET /publicRooms
|
// GetPostPublicRooms implements GET and POST /publicRooms
|
||||||
func GetPublicRooms(
|
func GetPostPublicRooms(
|
||||||
req *http.Request, publicRoomDatabase *storage.PublicRoomsServerDatabase,
|
req *http.Request, publicRoomDatabase *storage.PublicRoomsServerDatabase,
|
||||||
) util.JSONResponse {
|
) util.JSONResponse {
|
||||||
var limit int16
|
var limit int16
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ func Setup(apiMux *mux.Router, deviceDB *devices.Database, publicRoomsDB *storag
|
||||||
).Methods(http.MethodPut, http.MethodOptions)
|
).Methods(http.MethodPut, http.MethodOptions)
|
||||||
r0mux.Handle("/publicRooms",
|
r0mux.Handle("/publicRooms",
|
||||||
common.MakeExternalAPI("public_rooms", func(req *http.Request) util.JSONResponse {
|
common.MakeExternalAPI("public_rooms", func(req *http.Request) util.JSONResponse {
|
||||||
return directory.GetPublicRooms(req, publicRoomsDB)
|
return directory.GetPostPublicRooms(req, publicRoomsDB)
|
||||||
}),
|
}),
|
||||||
).Methods(http.MethodGet, http.MethodPost, http.MethodOptions)
|
).Methods(http.MethodGet, http.MethodPost, http.MethodOptions)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue