Skip to content

Commit

Permalink
updated the url in write/career.js to the api fucntion in the origina…
Browse files Browse the repository at this point in the history
…l repo
  • Loading branch information
mrahmatu committed Nov 13, 2023
1 parent 8f3b27a commit dc49657
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/write/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

3 changes: 3 additions & 0 deletions src/routes/write/career.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/routes/write/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc49657

Please sign in to comment.