mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 19:47:47 +08:00
feat: activity
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user