Updated to be correct port.

This commit is contained in:
2026-04-30 08:39:31 +02:00
parent 96dd5c863e
commit e0c2bf08b4
4 changed files with 19 additions and 32 deletions
+4 -3
View File
@@ -13,7 +13,7 @@ func (s *Server) setupRoutes() *chi.Mux {
router.Use(middleware.Logger)
router.Use(middleware.Recoverer)
// TODO: Not sure this is needed right now
// TODO: CLEANUP: Not sure this is needed right now
// Setup basic file server nothing fancy
router.Handle("/static/*", http.StripPrefix("/static", http.FileServer(http.Dir("static"))))
@@ -23,6 +23,7 @@ func (s *Server) setupRoutes() *chi.Mux {
router.Post("/register", s.handleRegister())
router.Post("/login", s.handleLogin())
router.Post("/logout", s.handleLogout())
router.Post("/refresh", s.handleRefresh())
})
// Private routes
@@ -31,8 +32,8 @@ func (s *Server) setupRoutes() *chi.Mux {
r.Use(s.hasAuth)
// TODO add authenicated routes here
// r.Get("/", s.handleHome())
// router.Mount("/users", s.userRoutes())
r.Get("/home", s.handleHome())
// router.Mount("/api", s.apiRoutes())
})
return router