/*******************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2017, 2019. All Rights Reserved.
 *
 * US Government Users Restricted Rights - Use, duplication or disclosure
 * restricted by GSA ADP Schedule Contract with IBM Corp.
 *******************************************************************************/
'use strict'
var express = require('express'),
    router = express.Router(),
    inspect = require('@stolostron/security-middleware')

//controllers
var app = require('./app'),
    tokenController = require('./token'),
    serviceDiscovery = require('./serviceDiscovery')

router.all('/token', tokenController)
router.all('/servicediscovery/*', serviceDiscovery)
router.all(['/', '/*'], inspect.ui(), app)

module.exports = router
