index.community/backend/lib/backend_web/router.ex

20 lines
525 B
Elixir
Raw Normal View History

2019-07-14 11:47:06 +00:00
defmodule BackendWeb.Router do
use BackendWeb, :router
pipeline :api do
plug(:accepts, ["json"])
2019-07-14 11:47:06 +00:00
end
scope "/api", BackendWeb do
pipe_through(:api)
2019-07-14 11:47:06 +00:00
2019-07-26 14:34:23 +00:00
resources("/instances", InstanceController, only: [:show])
2019-07-23 16:32:43 +00:00
resources("/graph", GraphController, only: [:index, :show])
resources("/search", SearchController, only: [:index])
2019-07-26 14:34:23 +00:00
resources("/admin/login", AdminLoginController, only: [:show, :create])
get "/admin", AdminController, :show
post "/admin", AdminController, :update
2019-07-14 11:47:06 +00:00
end
end