sbuhacks/api/routes/router.js

15 lines
376 B
JavaScript
Raw Permalink Normal View History

2022-09-24 17:06:11 -04:00
const express = require('express')
const router = express.Router()
const UserAPI = require('../apis/user-apis')
2022-09-24 22:42:02 -04:00
const ForumAPI = require('../apis/forum-apis')
2022-09-24 17:06:11 -04:00
router.post('/login', UserAPI.loginUser)
router.post('/register', UserAPI.registerUser)
2022-09-24 21:51:39 -04:00
router.get('/logout', UserAPI.logoutUser)
2022-09-24 17:06:11 -04:00
2022-09-24 22:42:02 -04:00
router.post('/postthread', ForumAPI.postThread)
router.get
2022-09-24 17:06:11 -04:00
module.exports = router