Updated to be correct port.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user