20 lines
375 B
Elixir
Raw Normal View History

2024-04-05 14:23:00 -04:00
defmodule TuskerPushWeb.Router do
use TuskerPushWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
2024-04-12 16:53:38 -04:00
scope "/", TuskerPushWeb do
get "/healthcheck", HealthcheckController, :healthcheck
end
2024-04-12 16:16:46 -04:00
scope "/push", TuskerPushWeb do
2024-04-05 14:23:00 -04:00
pipe_through :api
2024-04-05 15:04:38 -04:00
2024-04-07 12:08:17 -04:00
scope "/v1" do
2024-04-12 16:16:46 -04:00
post "/:env/:apns_device_token/:ctx", PushController, :push
2024-04-07 12:08:17 -04:00
end
2024-04-05 18:26:10 -04:00
end
2024-04-05 14:23:00 -04:00
end