diff --git a/src/controllers/write/index.js b/src/controllers/write/index.js index e1d20353..d98ba51c 100644 --- a/src/controllers/write/index.js +++ b/src/controllers/write/index.js @@ -12,5 +12,6 @@ Write.flags = require('./flags'); Write.admin = require('./admin'); Write.files = require('./files'); Write.utilities = require('./utilities'); -Write.career = require('./career'); +Write.career = require('./career'); +// this was added using a friend's help. It gets the router to use the career page's route defined. diff --git a/src/routes/write/career.js b/src/routes/write/career.js index 764fa5be..15cbdb68 100644 --- a/src/routes/write/career.js +++ b/src/routes/write/career.js @@ -1,3 +1,6 @@ + +// this file was created using a friend's help. It sets up the route for career page. + 'use strict'; const router = require('express').Router(); diff --git a/src/routes/write/index.js b/src/routes/write/index.js index 0a61c731..8000d40f 100644 --- a/src/routes/write/index.js +++ b/src/routes/write/index.js @@ -42,6 +42,8 @@ Write.reload = async (params) => { router.use('/api/v3/admin', require('./admin')()); router.use('/api/v3/files', require('./files')()); router.use('/api/v3/utilities', require('./utilities')()); + // this was added using a friend's help. It gets the router to use the career page's + // route defined. router.use('/api/v3/career', require('./career')()); router.get('/api/v3/ping', writeControllers.utilities.ping.get); router.post('/api/v3/ping', middleware.authenticateRequest, middleware.ensureLoggedIn, writeControllers.utilities.ping.post);