frontexpress/lib/frontexpress.js

13 lines
315 B
JavaScript
Raw Normal View History

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
function frontexpress() {
return new Application();
}
frontexpress.Router = (baseUri) => new Router(baseUri);
frontexpress.Middleware = (name) => new Middleware(name);
2016-06-26 10:10:37 +00:00
export default frontexpress;