index.js 917 Bytes
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;