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