15 lines
376 B
JavaScript
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 |