Fix a couple of inputs -> performs

This commit is contained in:
Neil Alexander 2020-04-29 10:34:37 +01:00
parent 17999e2149
commit ad607f29a6
2 changed files with 4 additions and 4 deletions

View file

@ -8,8 +8,8 @@ import (
)
const (
FederationSenderPerformJoinRequestPath = "/api/federationsender/inputJoinRequest"
FederationSenderPerformLeaveRequestPath = "/api/federationsender/inputLeaveRequest"
FederationSenderPerformJoinRequestPath = "/api/federationsender/performJoinRequest"
FederationSenderPerformLeaveRequestPath = "/api/federationsender/performLeaveRequest"
)
type PerformJoinRequest struct {

View file

@ -57,7 +57,7 @@ func (f *FederationSenderInternalAPI) SetupHTTP(servMux *http.ServeMux) {
}),
)
servMux.Handle(api.FederationSenderPerformJoinRequestPath,
common.MakeInternalAPI("inputJoinRequest", func(req *http.Request) util.JSONResponse {
common.MakeInternalAPI("PerformJoinRequest", func(req *http.Request) util.JSONResponse {
var request api.PerformJoinRequest
var response api.PerformJoinResponse
if err := json.NewDecoder(req.Body).Decode(&request); err != nil {
@ -70,7 +70,7 @@ func (f *FederationSenderInternalAPI) SetupHTTP(servMux *http.ServeMux) {
}),
)
servMux.Handle(api.FederationSenderPerformLeaveRequestPath,
common.MakeInternalAPI("inputLeaveRequest", func(req *http.Request) util.JSONResponse {
common.MakeInternalAPI("PerformLeaveRequest", func(req *http.Request) util.JSONResponse {
var request api.PerformLeaveRequest
var response api.PerformLeaveResponse
if err := json.NewDecoder(req.Body).Decode(&request); err != nil {