-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTBroutes.js
39 lines (30 loc) · 1.36 KB
/
TBroutes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var express = require('express');
module.exports = function(app){
var accounts = require('./controllers/accountController.js')
var client = require('./controllers/addClientController.js')
var clients = require('./controllers/clientsController.js')
var entry = require('./controllers/ajeController.js')
var closefye = require('./controllers/closeYearController.js')
var QBDesktopController = require('./controllers/QBDeskTopController.js')
app.use('/static',express.static('./static'))
app.use('/lib',express.static('../lib'))
app.get('/', function(req,res){
res.render('home.html')})
app.get('/clients/get',clients.getClients);
app.get('/client/get',clients.getClient);
app.get('/clientinfo/get',clients.getClientInfo);
app.get('/accounts/get',accounts.getAccounts);
app.post('/newclient',client.addClient);
app.post('/adjBalances',accounts.updateChart);
app.post('/closeYear/',closefye.closeYear)
app.post('/newAccount',accounts.addAccount);
app.post('/setAccountStatus/',accounts.inactivateAccount);
app.post('/newEntry',entry.addEntry);
app.post('/newEntryEdit',entry.addEntryEdit);
app.post('/deleteEntry/',entry.deleteAje);
app.get('/ajes/get',entry.getAjes);
app.get('/aje/get',entry.getAje);
app.get('/getAjeReport/',entry.getAjeReport);
app.post('/filterQbAccounts/',QBDesktopController.filterDeskTopAccounts);
app.post('/postQBAccounts/',QBDesktopController.postQBAccounts)
}