miataru/miataru-server

View on GitHub
lib/routes/homepage.js

Summary

Maintainability
A
0 mins
Test Coverage
/*
 * GET home page.
 */

function index(req, res){
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('this is the miataru service backend, welcome!\n\n' +
        'Homepage: http://www.miataru.com/\n' +
        'API-Documentation: http://www.miataru.com/#tabr4');
}

module.exports.install = function(app) {
    app.get('/', index);
};