Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.23

require (
github.com/gorilla/mux v1.8.1
github.com/jixunmoe-go/qrc v0.0.0-20230917162828-866e996416b0
github.com/joho/godotenv v1.5.1
github.com/kelseyhightower/envconfig v1.4.0
github.com/rs/cors v1.11.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
github.com/jixunmoe-go/qrc v0.0.0-20230917162828-866e996416b0 h1:XbKYQezv+JSdPBJE16KHzD2afrJB7tkc3wsJiVk4ilY=
github.com/jixunmoe-go/qrc v0.0.0-20230917162828-866e996416b0/go.mod h1:krzGKG44lKGayicX0UaQ/i53oHznpk4DmrBw2LnhpfI=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
Expand Down
1 change: 1 addition & 0 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
// Import providers to trigger their init() registration
_ "lyrics-api-go/services/providers/kugou"
_ "lyrics-api-go/services/providers/legacy"
_ "lyrics-api-go/services/providers/qq"
ttml "lyrics-api-go/services/providers/ttml"

"github.com/gorilla/mux"
Expand Down
1 change: 1 addition & 0 deletions routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func setupRoutes(router *mux.Router) {
// Provider-specific endpoints - return {"lyrics": ..., "provider": ...}
router.HandleFunc("/ttml/getLyrics", getLyricsWithProvider("ttml"))
router.HandleFunc("/kugou/getLyrics", getLyricsWithProvider("kugou"))
router.HandleFunc("/qq/getLyrics", getLyricsWithProvider("qq"))
router.HandleFunc("/legacy/getLyrics", getLyricsWithProvider("legacy"))

// Cache management endpoints
Expand Down
Loading