juandav / bills

micro routing based on json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%