services.js 391 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
var express = require('express');
var router = express.Router();

var ip_service = require('./services/invisiblepuzzle/invisiblepuzzle');
var echo_service = require('./services/echo/echo');

router.use('/ip', ip_service);
router.use('/echo', echo_service);

router.get('/', function(req, res, next) {

    res.send({

        "services": ["echo","ip"]

    });

});

module.exports = router;