architex/lib/matrix_server_web/router.ex

17 lines
357 B
Elixir
Raw Normal View History

2021-06-22 12:09:25 +00:00
defmodule MatrixServerWeb.Router do
use MatrixServerWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/_matrix", MatrixServerWeb do
2021-06-22 12:09:25 +00:00
pipe_through :api
scope "/client/r0", as: :client do
post "/register", AccountController, :register
get "/register/available", AccountController, :available
end
2021-06-22 12:09:25 +00:00
end
end