diff --git a/CHANGELOG.md b/CHANGELOG.md index 364a4a22d00ecfcae17c9e7c95e9326edc3ec784..9fdbd0f19aa9108495174a7cb851c92f37b8c3a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.10.2 - 2019-10-05 +## Changed +- Fix api.js + ## 1.10.0 - 2019-10-05 ## Added - Added university indicator diff --git a/src/libs/routes/api.js b/src/libs/routes/api.js index 46ca224b1e143161dcd258337927c1fce9396a4d..835ac1134f5868b382047a5f00fde882a8091d76 100644 --- a/src/libs/routes/api.js +++ b/src/libs/routes/api.js @@ -40,6 +40,8 @@ const school = require('./school'); const simulation = require('./simulation'); +const user = require('./user'); + const classroom = require('./classroom'); const teacher = require('./teacher'); @@ -62,8 +64,16 @@ const idhmr = require('./idhmr'); const idhml = require('./idhml'); +const oauth2 = require(`${libs}/middlewares/oauth2`); + +const verifyToken = require(`${libs}/routes/verifyToken`); + +const resetToken = require(`${libs}/routes/resetToken`); + const educationYears = require(`${libs}/routes/educationYears`); +const downloads = require(`${libs}/routes/downloads`); + const infrastructure = require(`${libs}/routes/infrastructure`); const schoolInfrastructure = require(`${libs}/routes/schoolInfrastructure`); @@ -103,6 +113,7 @@ api.get('/', (req, res) => { }); // mount API routes +api.use('/user', user); api.use('/simulation', simulation); api.use('/class', classes); api.use('/enrollment', enrollment); @@ -121,7 +132,11 @@ api.use('/rate_school', rateSchool); api.use('/gloss_enrollment_ratio', glossEnrollmentRatio); api.use('/liquid_enrollment_ratio', liquidEnrollmentRatio); api.use('/idhml', idhml); +api.use('/auth/token', oauth2.token); +api.use('/verify', verifyToken); +api.use('/reset', resetToken); api.use('/education_years', educationYears); +api.use('/downloads', downloads); api.use('/infrastructure', infrastructure); api.use('/school_infrastructure', schoolInfrastructure); api.use('/distribution_factor', distributionFactor);