16 lines
357 B
Elixir
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
|