teldrive/routes/user.go
2023-08-17 17:02:27 +05:30

19 lines
345 B
Go

package routes
import (
"github.com/divyam234/teldrive/services"
"github.com/gin-gonic/gin"
)
func addUserRoutes(rg *gin.RouterGroup) {
r := rg.Group("/users")
r.Use(Authmiddleware)
userService := services.UserService{}
r.GET("/profile", func(c *gin.Context) {
if c.Query("photo") != "" {
userService.GetProfilePhoto(c)
}
})
}