apihub
apihub copied to clipboard
Feat/movies db
This pull request introduces new routes and controllers for handling movies and series data. The most important changes include adding new routes for movies and series, creating controllers to manage these routes, and updating the main application file to include the new routes.
New Routes and Controllers:
-
Movies Routes and Controllers:
- Added
moviesRouter
import and usage insrc/app.js
to handle movies-related API endpoints. (src/app.js
[1] [2] - Created
movies.controllers.js
to manage movies data, including fetching movies and fetching a movie by ID. (src/controllers/public/movies.controllers.js
src/controllers/public/movies.controllers.jsR1-R33) - Added
movies.routes.js
to define the routes for movies API endpoints. (src/routes/public/movies.routes.js
src/routes/public/movies.routes.jsR1-R12)
- Added
-
Series Routes and Controllers:
- Added
seriesRouter
import and usage insrc/app.js
to handle series-related API endpoints. (src/app.js
[1] [2] - Created
series.controllers.js
to manage series data, including fetching series and fetching a series by ID. (src/controllers/public/series.controllers.js
src/controllers/public/series.controllers.jsR1-R33) - Added
series.routes.js
to define the routes for series API endpoints. (src/routes/public/series.routes.js
src/routes/public/series.routes.jsR1-R12)
- Added