alp-limosa

2.6.2 • Public • Published

alp-limosa NPM version

router limosa in alp

Dependency ci Status Dependency Status

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);

/alp-limosa/

    Package Sidebar

    Install

    npm i alp-limosa

    Weekly Downloads

    17

    Version

    2.6.2

    License

    ISC

    Last publish

    Collaborators

    • churpeau