tusker_push/lib/tusker_push_web/router.ex

14 lines
266 B
Elixir
Raw Normal View History

2024-04-05 18:23:00 +00:00
defmodule TuskerPushWeb.Router do
use TuskerPushWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
2024-04-05 19:04:38 +00:00
scope "/app", TuskerPushWeb do
2024-04-05 18:23:00 +00:00
pipe_through :api
2024-04-05 19:04:38 +00:00
resources "/registrations", RegistrationsController, only: [:create, :delete]
2024-04-05 18:23:00 +00:00
end
end