tusker_push/lib/tusker_push_web/router.ex

20 lines
375 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-12 20:53:38 +00:00
scope "/", TuskerPushWeb do
get "/healthcheck", HealthcheckController, :healthcheck
end
2024-04-12 20:16:46 +00:00
scope "/push", TuskerPushWeb do
2024-04-05 18:23:00 +00:00
pipe_through :api
2024-04-05 19:04:38 +00:00
2024-04-07 16:08:17 +00:00
scope "/v1" do
2024-04-12 20:16:46 +00:00
post "/:env/:apns_device_token/:ctx", PushController, :push
2024-04-07 16:08:17 +00:00
end
2024-04-05 22:26:10 +00:00
end
2024-04-05 18:23:00 +00:00
end