mirror of
https://github.com/navidrome/navidrome.git
synced 2025-08-10 00:52:20 +00:00
Introduces context.Context in API controllers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
@@ -12,7 +13,10 @@ import (
|
||||
"github.com/cloudsonic/sonic-server/utils"
|
||||
)
|
||||
|
||||
type BaseAPIController struct{ beego.Controller }
|
||||
type BaseAPIController struct {
|
||||
beego.Controller
|
||||
context context.Context
|
||||
}
|
||||
|
||||
func (c *BaseAPIController) NewEmpty() responses.Subsonic {
|
||||
return responses.Subsonic{Status: "ok", Version: beego.AppConfig.String("apiVersion")}
|
||||
|
||||
Reference in New Issue
Block a user