frontexpress/lib/frontexpress.js
2016-07-23 10:48:26 +02:00

26 lines
475 B
JavaScript
Executable File

/**
* Module dependencies.
*/
import Application from './application';
import Router from './router';
import Middleware from './middleware';
/**
* Create a frontexpress application.
*
* @return {Function}
* @api public
*/
const frontexpress = () => new Application();
/**
* Expose Router, Middleware constructors.
*/
frontexpress.Router = (baseUri) => new Router(baseUri);
frontexpress.Middleware = (name) => new Middleware(name);
export default frontexpress;