index.js
917 Bytes
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
36
37
38
39
40
41
42
43
var express = require('express')
var app = express()
var mysql = require('mysql')
var path = require('path')
var router = express.Router();
var main = require('./main/main')
var email = require('./email/email')
var join = require('./join/index')
var login = require('./login/index')
var logout = require('./logout/index')
var map = require('./map/index')
var gps = require('./GPS/index')
var make = require('./make/index')
var customer = require('./customer/index')
var market = require('./market/index')
//router.use('/market',market)
//url routing
router.get('/',function(erq,res) {
res.redirect('/main');
})
router.use('/main',main)
router.use('/email',email)
router.use('/join',join)
router.use('/login',login)
router.use('/logout',logout)
router.use('/map',map)
router.use('/gps',gps)
router.use('/make',make)
router.use('/customer',customer)
router.use('/market',market)
module.exports = router;