mirror of
https://github.com/kevin-DL/phoenix_api_template.git
synced 2026-01-12 11:05:13 +00:00
Initial commit
This commit is contained in:
11
lib/phoenix_api_template_web/router.ex
Normal file
11
lib/phoenix_api_template_web/router.ex
Normal file
@@ -0,0 +1,11 @@
|
||||
defmodule PhoenixApiTemplateWeb.Router do
|
||||
use PhoenixApiTemplateWeb, :router
|
||||
|
||||
pipeline :api do
|
||||
plug :accepts, ["json"]
|
||||
end
|
||||
|
||||
scope "/api", PhoenixApiTemplateWeb do
|
||||
pipe_through :api
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user