Add Native Sharing REST API (#1150)

* Initial draft - UNTESTED

* changes to Save() and Update()

* apply col filter and limit nanoid

* remove columns to not update
This commit is contained in:
Yash Jipkate
2021-06-09 01:14:30 +05:30
committed by GitHub
parent e80cf80d05
commit af210c8903
9 changed files with 112 additions and 6 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ func CreateServer(musicFolder string) *server.Server {
func CreateAppRouter() *app.Router {
dataStore := persistence.New()
broker := GetBroker()
router := app.New(dataStore, broker)
share := core.NewShare(dataStore)
router := app.New(dataStore, broker, share)
return router
}