From a2c085fe06d920bc98dc307bd39a004344933b78 Mon Sep 17 00:00:00 2001 From: Vytor Calixto <vytorcalixto@gmail.com> Date: Wed, 13 Sep 2017 12:01:24 -0300 Subject: [PATCH] Add missing library request --- src/libs/routes/class.js | 2 ++ src/libs/routes/enrollment.js | 2 ++ src/libs/routes/teacher.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/libs/routes/class.js b/src/libs/routes/class.js index 741d691d..b1a02c40 100644 --- a/src/libs/routes/class.js +++ b/src/libs/routes/class.js @@ -18,6 +18,8 @@ const id2str = require(`${libs}/middlewares/id2str`); const config = require(`${libs}/config`); +const request = require(`request`); + const cache = require('apicache').options({ debug: config.debug, statusCodes: {include: [200]} }).middleware; let rqfCount = new ReqQueryFields(); diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js index 5686779c..f67c4c9d 100644 --- a/src/libs/routes/enrollment.js +++ b/src/libs/routes/enrollment.js @@ -18,6 +18,8 @@ const id2str = require(`${libs}/middlewares/id2str`); const config = require(`${libs}/config`); +const request = require(`request`); + const cache = require('apicache').options({ debug: config.debug, statusCodes: {include: [200]} }).middleware; enrollmentApp.use(cache('15 day')); diff --git a/src/libs/routes/teacher.js b/src/libs/routes/teacher.js index 4fc2c5c7..d1d8267a 100644 --- a/src/libs/routes/teacher.js +++ b/src/libs/routes/teacher.js @@ -18,6 +18,8 @@ const id2str = require(`${libs}/middlewares/id2str`); const config = require(`${libs}/config`); +const request = require(`request`); + const cache = require('apicache').options({ debug: config.debug, statusCodes: {include: [200]} }).middleware; let rqf = new ReqQueryFields(); -- GitLab