feat: activity

This commit is contained in:
Simon Ding
2024-07-12 15:54:46 +08:00
parent 799884f73c
commit 5257b07888
6 changed files with 63 additions and 24 deletions

View File

@@ -52,6 +52,11 @@ func (s *Server) Serve() error {
setting.POST("/auth", HttpHandler(s.EnableAuth))
setting.GET("/auth", HttpHandler(s.GetAuthSetting))
}
activity := api.Group("/activity")
{
activity.GET("/", HttpHandler(s.GetAllActivities))
activity.DELETE("/:id", HttpHandler(s.RemoveActivity))
}
tv := api.Group("/tv")
{