user profiles
All checks were successful
pedestrian-simulator / build (push) Successful in 1m17s

This commit is contained in:
2026-01-13 13:10:55 -07:00
parent f985d3433d
commit 72b94597ca
6 changed files with 478 additions and 45 deletions

View File

@@ -137,7 +137,10 @@ func main() {
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
})
// 6. Start Server
// 7. User Profile Endpoint
http.HandleFunc("/api/user/profile", RequireAuth(HandleUserProfile))
// 8. Start Server
binding := "0.0.0.0:8080"
fmt.Printf("Server starting on http://%s\n", binding)
log.Fatal(http.ListenAndServe(binding, RecoveryMiddleware(http.DefaultServeMux)))