feat: initialized all controllers for release 1;
feat: authentication added to swagger
This commit is contained in:
@@ -23,6 +23,19 @@ func SetupRoutes(r *gin.Engine) *gin.Engine {
|
||||
authGroup.POST("/passwordResetBegin", controllers.PasswordResetBegin)
|
||||
authGroup.POST("/passwordResetComplete", controllers.PasswordResetComplete)
|
||||
}
|
||||
|
||||
accountGroup := apiGroup.Group("/account")
|
||||
{
|
||||
accountGroup.PUT("/changePassword", controllers.ChangePassword)
|
||||
}
|
||||
|
||||
profileGroup := apiGroup.Group("/profile")
|
||||
{
|
||||
profileGroup.GET("/:username", controllers.GetProfile)
|
||||
profileGroup.GET("/me", controllers.GetOwnProfile)
|
||||
profileGroup.GET("/privacy", controllers.GetPrivacySettings)
|
||||
profileGroup.PATCH("/privacy", controllers.UpdatePrivacySettings)
|
||||
}
|
||||
}
|
||||
|
||||
return r
|
||||
|
||||
Reference in New Issue
Block a user