Skip to content

Commit

Permalink
hopefully the last one
Browse files Browse the repository at this point in the history
Co-authored-by: liv [email protected]
  • Loading branch information
JTrenerry committed May 2, 2024
1 parent ef93a9b commit af85e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ router.post('/exams', async (req: Request, res: Response) => {
});

// Adds a new Course to the database
router.get('/courses', async (req: Request, res: Response) => {
router.post('/courses', async (req: Request, res: Response) => {
const { courseCode, courseName, courseDescription } = req.body;
const r = await db.query(`SELECT courseCode FROM courses WHERE courseCode = $1`, [courseCode]);
if (r.rowCount !== 0) {
Expand Down

0 comments on commit af85e19

Please sign in to comment.