This repository has been archived on 2023-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vn-softphone/router.js

24 lines
763 B
JavaScript
Raw Normal View History

2018-01-10 20:01:38 +00:00
let router = require('express')();
let path = require('path');
let view = require('./view.js');
router.get('/', function(request, response) {
view.render('home', {id: request.user.id}, response);
});
2018-01-16 19:31:19 +00:00
router.get('/history', function(request, response) {
let number = request.query.number;
view.render('history', {id: request.user.id, call: number}, response);
});
router.get('/dialpad', function(request, response) {
let number = request.query.number;
view.render('dialpad', {id: request.user.id, call: number}, response);
});
router.get('/call', function(request, response) {
let number = request.query.number;
view.render('call', {id: request.user.id, call: number}, response);
});
2018-01-10 20:01:38 +00:00
module.exports = router;