send country code in ws, update profile api (#22)

* send country code in ws

* make ddns_profiles optional field

* update profile api
This commit is contained in:
UUBulb
2024-11-26 21:30:56 +08:00
committed by GitHub
parent 07989705d2
commit e90941f52b
6 changed files with 62 additions and 10 deletions

View File

@@ -74,6 +74,7 @@ func routers(r *gin.Engine) {
auth.GET("/ws/file/:id", commonHandler(fmStream))
auth.GET("/profile", commonHandler(getProfile))
auth.POST("/profile", commonHandler(updateProfile))
auth.GET("/user", commonHandler(listUser))
auth.POST("/user", commonHandler(createUser))
auth.POST("/batch-delete/user", commonHandler(batchDeleteUser))