move admin playlist handlers to own file

This commit is contained in:
sentriz
2020-03-15 00:03:15 +00:00
parent acb9625f34
commit 4b32bc0e4d
3 changed files with 32 additions and 30 deletions

View File

@@ -20,6 +20,7 @@ import (
// a) write to response writer
// b) return a non-nil spec.Response
// _but not both_
func (c *Controller) ServeGetCoverArt(w http.ResponseWriter, r *http.Request) *spec.Response {
params := r.Context().Value(CtxParams).(params.Params)
id, err := params.GetInt("id")