-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathroutes.js
23 lines (17 loc) · 836 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
const controllers = require("./controllers/load.js");
/* Express Routing. */
module.exports = (app) => {
app.get("/", controllers.index.getIndex);
app.get("/logs", controllers.index.getLogs);
app.get("/logs/info", controllers.index.getInfoLog);
app.get("/logs/warning", controllers.index.getWarningLog);
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("/shows/select/:ids", controllers.shows.getShowGroup);
app.get("/movie/:id", controllers.movies.getMovie);
app.get("/movies", controllers.movies.getMovies);
app.get("/movies/:page", controllers.movies.getPage);
app.get("/movies/select/:ids", controllers.movies.getMovieGroup);
};