add avatar endpoint

This commit is contained in:
kandrusyak
2023-07-28 00:58:54 +03:00
parent 4d01d35eae
commit 4c61eb82a0
5 changed files with 152 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ func main() {
e.POST("/login", h.Login)
e.GET("/me", h.GetCurrentUser)
e.POST("/", h.CreateUser)
e.POST("/:id/avatar", h.UploadAvatar)
e.GET("/", h.GetUsers)
e.GET("/:id", h.GetUser)
e.GET("/batch/:ids", h.GetUserBatch)