add supporters list

This commit is contained in:
2025-11-25 17:35:18 +02:00
parent 48c09e4fb6
commit b323e6940d
4 changed files with 100 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ func Handler(w http.ResponseWriter, r *http.Request) {
torrentsHandler := handlersPkg.NewTorrentsHandler(torrentService, tmdbService)
reactionsHandler := handlersPkg.NewReactionsHandler(reactionsService)
imagesHandler := handlersPkg.NewImagesHandler()
supportHandler := handlersPkg.NewSupportHandler()
router := mux.NewRouter()
@@ -115,6 +116,8 @@ func Handler(w http.ResponseWriter, r *http.Request) {
api.HandleFunc("/images/{type}/{id}", imagesHandler.GetImage).Methods("GET")
api.HandleFunc("/support/list", supportHandler.GetSupportersList).Methods("GET")
// Movies routes - specific paths first, then parameterized
api.HandleFunc("/movies/search", movieHandler.Search).Methods("GET")
api.HandleFunc("/movies/popular", movieHandler.Popular).Methods("GET")