forked from noods78/popcorn-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.js
20 lines (15 loc) · 781 Bytes
/
routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var controllers = require('./controllers/load.js');
// Express Routing
module.exports = function(app) {
app.get('/', controllers.index.getIndex);
app.get('/shows', controllers.shows.getShows);
app.get('/shows/:page', controllers.shows.getPage);
app.get('/show/:id', controllers.shows.getShow);
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);
app.get('/movie/:id/rating', controllers.movies.getMovieRating);
}