frontexpress/lib/frontexpress.js

26 lines
456 B
JavaScript
Raw Normal View History

2016-07-15 19:34:24 +00:00
/**
* Module dependencies.
*/
2016-06-28 11:36:39 +00:00
import Application from './application';
import Router from './router';
import Middleware from './middleware';
2016-06-26 10:10:37 +00:00
2016-07-15 19:34:24 +00:00
/**
* Create a frontexpress application.
*
* @return {Function}
* @api public
*/
const frontexpress = () => new Application();
2016-07-15 19:34:24 +00:00
/**
* Expose constructors.
*/
frontexpress.Router = (baseUri) => new Router(baseUri);
frontexpress.Middleware = (name) => new Middleware(name);
2016-06-26 10:10:37 +00:00
export default frontexpress;