feat: add media sources

This commit is contained in:
Rogee
2024-12-02 19:34:22 +08:00
parent 490e5743d4
commit fbf51fd7fc
5 changed files with 125 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ func (r *Router) Register() error {
group := r.http.Engine.Group("medias")
log.Infof("register route group: %s", group.(*fiber.Group).Prefix)
group.Get("", r.controller.List)
group.Get("{id}", r.controller.List)
group.Get("{id}", r.controller.Show)
return nil
}