feat: items page

This commit is contained in:
2025-03-14 14:14:35 -04:00
parent f58b3cc18d
commit 50c8d18df9
17 changed files with 2384 additions and 54 deletions

View File

@ -114,6 +114,7 @@ func main() {
api := http.NewServeMux()
api.Handle(withCORS(handlers.NewAuthHandler(db, env.Key)))
api.Handle(withCORS(handlers.NewUserHandler(db, env.Key)))
api.Handle(withCORS(handlers.NewItemHandler(db, env.Key)))
// Serve web interface
mux := http.NewServeMux()
@ -153,7 +154,9 @@ func main() {
}
}()
server.ListenAndServe()
if err := server.ListenAndServe(); err != nil {
log.Fatal(err)
}
}
// withCORS adds CORS support to a Connect HTTP handler.