Skip to content

Commit

Permalink
📋 impl: Added the profile update controller to a PUT route on the rou…
Browse files Browse the repository at this point in the history
…ter package
  • Loading branch information
kevinmarquesp committed Jul 3, 2024
1 parent 7653d84 commit fb33ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ func InitRouter(port string, db models.GenericDatabaseProvider) error {
apiRouter := http.NewServeMux()

authController := api.AuthController{Database: db}
//usersController := api.UsersController{Database: db}
usersController := api.UsersController{Database: db}
//publicController := api.PublicController{Database: db}

apiRouter.HandleFunc("POST /auth/register", authController.RegisterNewUser)
apiRouter.HandleFunc("PUT /auth/refresh", authController.RefreshUserSessionToken)
//apiRouter.HandleFunc("DELETE /auth/quit", authController.RemoveUser)
//apiRouter.HandleFunc("PUT /settings/profile/{username}", usersController.UpdateUserProfileDetails)
apiRouter.HandleFunc("PUT /settings/profile/{userPublicId}", usersController.UpdateUserProfileDetails)
//apiRouter.HandleFunc("GET /profile/{username}", publicController.GetPublicUserInformation)
//apiRouter.HandleFunc("POST /follow/{userPublicId}", usersController.FollowUserByPublicId)
//apiRouter.HandleFunc("GET /users", publicController.GetUsersSummaryList)
Expand Down

0 comments on commit fb33ffe

Please sign in to comment.