mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-10 23:53:09 -06:00
Latest dendrite main has changes for knockable rooms, and the fix for login crash. Pulled into dendrite fork. Rebased dendrite fork from dendrite main. Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com> Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com> Co-authored-by: kegsay <kegan@matrix.org> Co-authored-by: Tak Wai Wong <tak@hntlabs.com> Co-authored-by: texuf <texuf.eth@gmail.com> Co-authored-by: Brian Meek <brian@hntlabs.com> Co-authored-by: Tak Wai Wong <takwaiw@gmail.com>
21 lines
574 B
Go
21 lines
574 B
Go
package inthttp
|
|
|
|
import (
|
|
"github.com/gorilla/mux"
|
|
"github.com/matrix-org/dendrite/appservice/api"
|
|
"github.com/matrix-org/dendrite/internal/httputil"
|
|
)
|
|
|
|
// AddRoutes adds the AppServiceQueryAPI handlers to the http.ServeMux.
|
|
func AddRoutes(a api.AppServiceInternalAPI, internalAPIMux *mux.Router) {
|
|
internalAPIMux.Handle(
|
|
AppServiceRoomAliasExistsPath,
|
|
httputil.MakeInternalRPCAPI("AppserviceRoomAliasExists", a.RoomAliasExists),
|
|
)
|
|
|
|
internalAPIMux.Handle(
|
|
AppServiceUserIDExistsPath,
|
|
httputil.MakeInternalRPCAPI("AppserviceUserIDExists", a.UserIDExists),
|
|
)
|
|
}
|