services.printer/app/router.js

13 lines
496 B
JavaScript

/**
* @param {Egg.Application} app - egg application
*/
module.exports = app => {
const { router, controller } = app;
router.get('/', controller.home.index);
router.post('/auth/bind', controller.auth.bind);
router.post('/auth/logout', controller.auth.logout);
router.post('/auth/refreshInfo', controller.auth.refreshInfo);
router.post('/frp/newProxy', controller.frp.newProxy);
router.post('/sendToRoom', controller.home.sendToRoom);
app.ws.route('/ws', controller.print.ws);
};