summaryrefslogtreecommitdiffstats
path: root/modules/orionode/lib/cf.js
blob: 431c8e1883e9811641afb3a7d0e76a0f9a453178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*eslint-env node */
/*******************************************************************************
 * Copyright (c) 2016 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
var express = require('express');

var apps = require('./cf/apps');
var domains = require('./cf/domains');
var logz = require('./cf/logz');
var manifests = require('./cf/manifests');
var orgs = require('./cf/orgs_spaces');
var plans = require('./cf/plans');
var routes = require('./cf/routes');
var services = require('./cf/services');
var target = require('./cf/target');

module.exports = CF;
function CF(options) {
	var router = express.Router();
	
	router.use("/apps", apps.router(options));
	router.use("/domains", domains.router(options));
	router.use("/logz", logz.router(options));
	router.use("/manifests", manifests.router(options));
	router.use("/orgs", orgs.router(options));
	router.use("/plans", plans.router(options));
	router.use("/routes", routes.router(options));
	router.use("/services", services.router(options));
	router.use("/target", target.router(options));
	return router;
}