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