All checks were successful
Build and Publish / build-release (push) Successful in 4m46s
21 lines
384 B
Elixir
21 lines
384 B
Elixir
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
|