fix ui
All checks were successful
Deploy on Master Change / deploy (push) Successful in 44s

This commit is contained in:
2026-07-01 15:08:31 +07:00
parent 7a9c7a93ff
commit 7e84ddeaf9
8 changed files with 443 additions and 20 deletions

View File

@@ -109,6 +109,7 @@ func main() {
api.Get("/public/app-downloads", handlers.ListAppDownloadsPublicHandler(gormDB))
api.Get("/public/guide-links", handlers.ListGuideLinksPublicHandler(gormDB))
api.Get("/public/app-guides", handlers.ListAppGuidesPublicHandler(gormDB))
// Management — yêu cầu đăng nhập staff
staff := api.Group("", middleware.RequireStaff())
@@ -215,6 +216,11 @@ func main() {
staff.Put("/app-downloads/:id", handlers.UpdateAppDownloadHandler(gormDB))
staff.Delete("/app-downloads/:id", handlers.DeleteAppDownloadHandler(gormDB))
staff.Get("/app-guides", handlers.ListAppGuidesHandler(gormDB))
staff.Post("/app-guides", handlers.CreateAppGuideHandler(gormDB))
staff.Put("/app-guides/:id", handlers.UpdateAppGuideHandler(gormDB))
staff.Delete("/app-guides/:id", handlers.DeleteAppGuideHandler(gormDB))
go func() {
ticker := time.NewTicker(30 * time.Second)
defer ticker.Stop()