forked from CMU-313/cmu-313-f24-nodebb-f24-NodeBB
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* working route for ohQueue * changed controller * fixed lint * added api/oh-queue.js * updated openapi folder for oh queue to resolve errors * working front end * fixed lint * working front end and passing tests * fixed lint
- Loading branch information
Showing
5 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
# bing copilot | ||
get: | ||
responses: | ||
'200': | ||
description: Successful response | ||
# content: | ||
# application/json: | ||
# schema: | ||
# type: object | ||
# # required: | ||
# # - message | ||
# properties: | ||
# message: | ||
# type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// source chatGPT | ||
// const controllers = require.main.require('./src/controllers'); | ||
|
||
'use strict'; | ||
|
||
module.exports = (app, middleware) => { | ||
app.get('/oh-queue', middleware.buildHeader, (req, res) => { | ||
res.render('oh-queue', {}); | ||
}); | ||
app.get('/api/oh-queue', (req, res) => { | ||
res.json({ | ||
// message: 'Welcome to the Office Hours Queue page!', | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
'use strict'; | ||
|
||
const ohQueue = {}; | ||
|
||
ohQueue.get = function (req, res) { | ||
res.render('oh-queue', {}); | ||
}; | ||
|
||
module.exports = ohQueue; | ||
|
||
// bing copilot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters