Initial support for song browsing from UI

This commit is contained in:
Deluan
2020-01-22 10:19:13 -05:00
parent fdf1ceeade
commit 9557f7ceed
17 changed files with 158 additions and 28 deletions
+3
View File
@@ -53,6 +53,9 @@ func (app *Router) routes() http.Handler {
R(r, "/user", func(ctx context.Context) rest.Repository {
return app.ds.Resource(model.User{})
})
R(r, "/song", func(ctx context.Context) rest.Repository {
return app.ds.Resource(model.MediaFile{})
})
})
return r
}