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:
3
main.go
3
main.go
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user