mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-01-27 15:06:19 +00:00
26 lines
456 B
JavaScript
Executable File
26 lines
456 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 constructors.
|
|
*/
|
|
frontexpress.Router = (baseUri) => new Router(baseUri);
|
|
frontexpress.Middleware = (name) => new Middleware(name);
|
|
|
|
export default frontexpress;
|