var serviceConfig = require('./serviceConfig.json');

var login = require('./modules/login');

module.exports = function(app,express){
app.use('/', express.static(__dirname + '/../dist'));
app.use('/scripts', express.static(__dirname + '/../node_modules'));
app.use('/css', express.static(__dirname + '/../dist/assets/css'));
app.use('/images', express.static(__dirname + '/../dist/assets/images'));
app.use('/uploadimages', express.static(__dirname + '/../server/uploadimages'));
app.use('/topics', express.static(__dirname + '/../dist/assets/topicIcons'));
app.get(serviceConfig.GET_DEFAULT, function(req, res){
        res.sendFile(__dirname + '/../dist/index.html');
    });
    //login
   app.post(serviceConfig.LOGIN,login.checkuser);

}