feat(subsonic): make the v param optional

This commit is contained in:
brian-doherty
2022-05-18 08:20:16 -05:00
committed by GitHub
parent 64d8e014b3
commit 50e2818cc7

View File

@@ -36,7 +36,7 @@ func (c *Controller) WithParams(next http.Handler) http.Handler {
func (c *Controller) WithRequiredParams(next http.Handler) http.Handler {
requiredParameters := []string{
"u", "v", "c",
"u", "c",
}
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
params := r.Context().Value(CtxParams).(params.Params)