sbuhacks/api/routes/router.js
2022-09-24 17:06:11 -04:00

14 lines
368 B
JavaScript

const express = require('express')
const router = express.Router()
const UserAPI = require('../apis/user-apis')
const test = async(req,res) => {
await new Promise(resolve => setTimeout(resolve, 1000));
res.send("hi")
}
router.post('/login', UserAPI.loginUser)
router.post('/register', UserAPI.registerUser)
router.post('/test', test)
module.exports = router