MongooseIM: Add basic integration endpoints.

This commit is contained in:
lain 2019-05-17 18:21:11 +02:00
commit f959bf7aa6
3 changed files with 105 additions and 0 deletions

View file

@ -704,6 +704,11 @@ defmodule Pleroma.Web.Router do
end
end
scope "/", Pleroma.Web.MongooseIM do
get("/user_exists", MongooseIMController, :user_exists)
get("/check_password", MongooseIMController, :check_password)
end
scope "/", Fallback do
get("/registration/:token", RedirectController, :registration_page)
get("/:maybe_nickname_or_id", RedirectController, :redirector_with_meta)