Skip to content

juandav/bills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bills

bills is a very small library that allows you to load a json file and route what you write in the syntax proposed by the library.

Installation

$ npm install --save bills 

api.js

import express from 'express'
import bills from 'bills'

const app = express()
const options = {
  "mainfest": `${process.cwd()}/__test__/routing.json`, // optional
  "adapter": {
    "name": "express",
    "instance": app
  }
}
bills(options)

app.listen(3000)

About

micro routing based on json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published