architex/lib/matrix_server_web/router.ex
Pim Kunis 6e039524a4 Add migration and schema for accounts
Add account name availability endpoint
2021-06-22 23:04:37 +02:00

16 lines
357 B
Elixir

defmodule MatrixServerWeb.Router do
use MatrixServerWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/_matrix", MatrixServerWeb do
pipe_through :api
scope "/client/r0", as: :client do
post "/register", AccountController, :register
get "/register/available", AccountController, :available
end
end
end