Started with items

This commit is contained in:
2026-06-03 14:24:14 +02:00
parent 78731c1728
commit 0a44df319d
9 changed files with 279 additions and 24 deletions

View File

@@ -69,6 +69,13 @@ func (this *Server) Run() {
mux.HandleFunc("/api/refresh", handlers.RefreshToken)
mux.HandleFunc("/api/logout", handlers.Logout)
mux.HandleFunc("/api/items", handlers.GetItems)
mux.HandleFunc("/api/items/create", handlers.CreateItem)
mux.HandleFunc("/api/locations/create", handlers.CreateLocation)
mux.HandleFunc("/api/projects/create", handlers.CreateProject)
mux.HandleFunc("/api/stock/add", handlers.AddStock)
mux.HandleFunc("/api/project-items/add", handlers.AllocateToProject)
// Login required
// Admin-only