mirror of
https://github.com/kevin-DL/phoenix_api_template.git
synced 2026-01-11 18:54:33 +00:00
15 lines
297 B
Elixir
15 lines
297 B
Elixir
defmodule PhoenixApiTemplateWeb.Router do
|
|
use PhoenixApiTemplateWeb, :router
|
|
|
|
pipeline :api do
|
|
plug(:accepts, ["json"])
|
|
end
|
|
|
|
scope "/api", PhoenixApiTemplateWeb do
|
|
pipe_through(:api)
|
|
|
|
get("/", DefaultController, :index)
|
|
post("/register", UserController, :create)
|
|
end
|
|
end
|