This commit is contained in:
20
lib/provider_service_web/provider_service_web.ex
Normal file
20
lib/provider_service_web/provider_service_web.ex
Normal file
@@ -0,0 +1,20 @@
|
||||
defmodule ProviderServiceWeb do
|
||||
def controller do
|
||||
quote do
|
||||
use Phoenix.Controller, formats: [:json]
|
||||
import Plug.Conn
|
||||
end
|
||||
end
|
||||
|
||||
def router do
|
||||
quote do
|
||||
use Phoenix.Router, helpers: false
|
||||
import Plug.Conn
|
||||
import Phoenix.Controller
|
||||
end
|
||||
end
|
||||
|
||||
defmacro __using__(which) when is_atom(which) do
|
||||
apply(__MODULE__, which, [])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user