alp-limosa
v2.6.2
Published
router limosa in alp
Downloads
30
Readme
alp-limosa
router limosa in alp
With Koa
import Koa from 'koa';
import config from 'alp-config';
import language from 'alp-language';
import router from 'alp-limosa';
import routerBuilder from './routerBuilder';
const controllers = new Map();
// controllers.set('site', SiteController);
const app = new Koa();
config(__dirname + '/config')(app);
language(app);
const handler = router(routerBuilder, controllers)(app);
// app.use(serve(__dirname + '../public/')); // static files
app.use(handler);
With Ibex
import Ibex from 'ibex';
import config from 'alp-config';
import language from 'alp-language';
import router from 'alp-limosa';
import routerBuilder from './routerBuilder';
const controllers = new Map();
// controllers.set('site', SiteController);
const app = new Ibex();
config(__dirname + '/config')(app);
language(app);
const handler = router(routerBuilder, controllers)(app);
app.use(handler);
With Alp (Node or Browser)
import Alp from 'alp';
import routerBuilder from './routerBuilder';
const controllers = new Map();
// controllers.set('site', SiteController);
const app = new Alp();
app.useRouter(routerBuilder, controllers);