architex/lib/matrix_server_web/router.ex

20 lines
452 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", AuthController, :register
get "/login", AuthController, :login
get "/register/available", AccountController, :available
end
get "/client/versions", InfoController, :versions
2021-06-22 12:09:25 +00:00
end
end