mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-02-24 15:05:41 +08:00
20 lines
345 B
Go
20 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)
|
||
|
}
|
||
|
})
|
||
|
}
|