Account page (aka detailed version description)

This commit is contained in:
2025-03-02 12:47:29 +08:00
parent 5979fd5b2c
commit 0fac34edfb
3 changed files with 97 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func MapControllers(app *fiber.App, baseURL string) {
badges := api.Group("/badges").Name("Badges")
{
badges.Get("/me", listUserBadge)
badges.Post("/:badgeId/active", activeUserBadge)
}
@ -79,6 +80,9 @@ func MapControllers(app *fiber.App, baseURL string) {
me.Put("/status", editStatus)
me.Delete("/status", clearStatus)
me.Get("/pages", getOwnAccountPage)
me.Put("/pages", updateAccountPage)
contacts := me.Group("/contacts").Name("Contacts")
{
contacts.Get("/", listContact)
@ -122,6 +126,7 @@ func MapControllers(app *fiber.App, baseURL string) {
{
directory.Get("/", getOtherUserinfo)
directory.Get("/status", getStatus)
directory.Get("/pages", getAccountPage)
directory.Get("/check-in", listOtherUserCheckInRecord)
}