sbuhacks/api/routes/router.js
2022-09-24 22:42:02 -04:00

15 lines
376 B
JavaScript

const express = require('express')
const router = express.Router()
const UserAPI = require('../apis/user-apis')
const ForumAPI = require('../apis/forum-apis')
router.post('/login', UserAPI.loginUser)
router.post('/register', UserAPI.registerUser)
router.get('/logout', UserAPI.logoutUser)
router.post('/postthread', ForumAPI.postThread)
router.get
module.exports = router