New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

baxel-route

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baxel-route

Baxel routes

latest
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

Baxel Route

Routes for Baxel

Installation

npm install --save baxel-route

Usage

Prepare root routes

var route = require('baxel-route')
  // Returns a koa-router instance
  , router = route({
    // Root
    root: 'home#index',
    // namespace example
    example: {
      index: { get: 'example#index' },
      search: { get: 'example#search' },
    }
  });

Prepare subdomain routes, subdomain are used by baxel and its used with vhost

var route = require('baxel-route')
  // Returns a koa-router instance
  , router = route({
    subdomain: ['subdomain', 'subdomain-dev'],
    // Root
    root: 'subdomain#index',
  });

Limitations

Doesn't support nested namespaces ATM

License

MIT

Keywords

web

FAQs

Package last updated on 09 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts