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:
2026-04-21 13:56:18 +02:00
parent 851665ef60
commit 6076654aa4
6 changed files with 224 additions and 3 deletions

View File

@ -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