Fix HTTP API for PerformUpgrade

This commit is contained in:
Neil Alexander 2022-04-01 10:08:17 +01:00
parent 7db9322b53
commit 0351c51c2d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -96,7 +96,7 @@ func AddRoutes(r api.RoomserverInternalAPI, internalAPIMux *mux.Router) {
return util.JSONResponse{Code: http.StatusOK, JSON: &response}
}),
)
internalAPIMux.Handle(RoomserverPerformPeekPath,
internalAPIMux.Handle(RoomserverPerformRoomUpgradePath,
httputil.MakeInternalAPI("performRoomUpgrade", func(req *http.Request) util.JSONResponse {
var request api.PerformRoomUpgradeRequest
var response api.PerformRoomUpgradeResponse