mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-12-16 20:46:10 +05:00
add supporters list
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user