You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
765 B
46 lines
765 B
12 months ago
|
/**
|
||
|
* Express router of api/
|
||
|
*/
|
||
|
|
||
|
import express from 'express';
|
||
|
|
||
|
|
||
|
const router = express.Router();
|
||
|
|
||
|
router.get('/', async (req, res) => {
|
||
|
|
||
|
return res.send('api/');
|
||
|
});
|
||
|
|
||
|
router.post('/newtask/', async (req, res) => {
|
||
|
|
||
|
return res.send('api/newtask/');
|
||
|
});
|
||
|
|
||
|
router.get('/gettask/', async (req, res) => {
|
||
|
|
||
|
return res.send('api/gettask/');
|
||
|
});
|
||
|
|
||
|
router.post('/savetask/', async (req, res) => {
|
||
|
|
||
|
return res.send('api/savetask/');
|
||
|
});
|
||
|
|
||
|
router.get('/querytask/', async (req, res) => {
|
||
|
|
||
|
return res.send('api/querytask/');
|
||
|
});
|
||
|
|
||
|
router.post('/onboard/', async (req, res) => {
|
||
|
|
||
|
return res.send('api/onboard/');
|
||
|
});
|
||
|
|
||
|
router.get('/stats/', async (req, res) => {
|
||
|
|
||
|
return res.send('api/stats/');
|
||
|
});
|
||
|
|
||
|
export default router;
|