feat(subsonic): make the v param optional
This commit is contained in:
@@ -36,7 +36,7 @@ func (c *Controller) WithParams(next http.Handler) http.Handler {
|
|||||||
|
|
||||||
func (c *Controller) WithRequiredParams(next http.Handler) http.Handler {
|
func (c *Controller) WithRequiredParams(next http.Handler) http.Handler {
|
||||||
requiredParameters := []string{
|
requiredParameters := []string{
|
||||||
"u", "v", "c",
|
"u", "c",
|
||||||
}
|
}
|
||||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
params := r.Context().Value(CtxParams).(params.Params)
|
params := r.Context().Value(CtxParams).(params.Params)
|
||||||
|
|||||||
Reference in New Issue
Block a user