mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-11 01:28:27 +08:00
19 lines
345 B
Go
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)
|
|
}
|
|
})
|
|
}
|