Created
May 31, 2016 15:53
-
-
Save Ell/01cb03115f51dc063539cf246581f73d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router.Handle("/add", &ContextAdapter{ | |
ctx: rootContext, | |
handler: withAPIKeyAuthentication(cfg.Server.APIKey, withDatabase(db, withMopidyClient(mclient, ContextHandlerFunc(addSongHandler)))), | |
}).Methods("POST") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment