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
|
|
|
|
*/
|
|
|
|
|
2016-07-09 00:58:41 +00:00
|
|
|
const frontexpress = () => new Application();
|
2016-07-15 19:34:24 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Expose constructors.
|
|
|
|
*/
|
2016-07-08 21:29:40 +00:00
|
|
|
frontexpress.Router = (baseUri) => new Router(baseUri);
|
|
|
|
frontexpress.Middleware = (name) => new Middleware(name);
|
2016-06-26 10:10:37 +00:00
|
|
|
|
|
|
|
export default frontexpress;
|