2019-07-14 11:47:06 +00:00
|
|
|
defmodule BackendWeb.Router do
|
|
|
|
use BackendWeb, :router
|
|
|
|
|
|
|
|
pipeline :api do
|
2019-07-23 12:20:34 +00:00
|
|
|
plug(:accepts, ["json"])
|
2019-07-14 11:47:06 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
scope "/api", BackendWeb do
|
2019-07-23 12:20:34 +00:00
|
|
|
pipe_through(:api)
|
2019-07-14 11:47:06 +00:00
|
|
|
|
2019-07-23 12:20:34 +00:00
|
|
|
resources("/instances", InstanceController, only: [:index, :show])
|
|
|
|
resources("/graph", GraphController, only: [:index])
|
|
|
|
resources("/search", SearchController, only: [:index])
|
2019-07-14 11:47:06 +00:00
|
|
|
end
|
|
|
|
end
|