After 'mix phx.gen.json Items Item items name:string description:string info:string amount:integer factor:float type:string --no-context --no-schema'.
This commit is contained in:
@ -24,9 +24,11 @@ defmodule GenericRestServerWeb.Router do
|
||||
end
|
||||
|
||||
# Other scopes may use custom stacks.
|
||||
# scope "/api", GenericRestServerWeb do
|
||||
# pipe_through :api
|
||||
# end
|
||||
scope "/api", GenericRestServerWeb do
|
||||
pipe_through :api
|
||||
|
||||
resources "/items", ItemController, except: [:new, :edit]
|
||||
end
|
||||
|
||||
# Enable LiveDashboard and Swoosh mailbox preview in development
|
||||
if Application.compile_env(:generic_rest_server, :dev_routes) do
|
||||
|
||||
Reference in New Issue
Block a user