tusker_push/lib/tusker_push_web/router.ex

20 lines
387 B
Elixir

defmodule TuskerPushWeb.Router do
use TuskerPushWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/app", TuskerPushWeb do
pipe_through :api
resources "/registrations", RegistrationsController, only: [:create, :update, :delete]
end
scope "/mastodon", TuskerPushWeb do
pipe_through :api
post "/push/:id", PushController, :push
end
end