forked from cmd430/tv-movie-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.js
26 lines (18 loc) · 969 Bytes
/
routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const controllers = require("./controllers/load.js");
/* Express Routing. */
module.exports = (app) => {
app.get("/", controllers.index.getIndex);
app.get("/logs/error", controllers.index.getErrorLog);
app.get("/show/:id", controllers.shows.getShow);
app.get("/shows", controllers.shows.getShows);
app.get("/shows/:page", controllers.shows.getPage);
app.get("/movie/:id", controllers.movies.getMovie);
app.get("/movies", controllers.movies.getMovies);
app.get("/movies/:page", controllers.movies.getPage);
// app.get("/shows/search/:search", controllers.shows.search);
// app.get("/shows/search/:search/:page", controllers.shows.searchPage);
// app.get("/shows/update/:since", controllers.shows.getSince);
// app.get("/shows/update/:since/:page", controllers.shows.getSincePage);
// app.get("/shows/last_updated", controllers.shows.getLastUpdated);
// app.get("/shows/last_updated/:page", controllers.shows.getLastUpdatedPage);
};