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

@@ -68,6 +68,7 @@ func main() {
torrentsHandler := appHandlers.NewTorrentsHandler(torrentService, tmdbService)
reactionsHandler := appHandlers.NewReactionsHandler(reactionsService)
imagesHandler := appHandlers.NewImagesHandler()
supportHandler := appHandlers.NewSupportHandler()
r := mux.NewRouter()
@@ -112,6 +113,8 @@ func main() {
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")