var express = require('express');
var app = express();
require('./func')(app);
app.listen(3000);
app.get('/customer', function (req, res) {
res.send('customers!');
});
module.exports = function (app) {
app.get('/', function (req, res) {
res.send('none!');
});
app.get('/user', function (req, res) {
res.send('users!');
});
app.get('/users', function (req, res) {
res.send('users others!');
});
};
$('input[type=submit]').click(function() {
$(this).attr('disabled', 'true');
$(this).parents('form').submit();
});