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;