content endpoint

This commit is contained in:
2026-11-10 13:37:46 -05:00
parent 77e28c42d2
commit 4751899357
4 changed files with 56 additions and 1 deletions
+1
View File
@@ -45,6 +45,7 @@ func main() {
log.Println("render home page:", err)
}
})
mux.HandleFunc("GET /{id}", contentHandler(db, config))
mux.HandleFunc("POST /upload", uploadHandler(db, config))
mux.HandleFunc("GET /health", health)