octavia-api
v1.0.1
Published
octavia-api is a api for octavia-db. use with octavia-client
Downloads
10
Maintainers
Readme
octavia-api
octavia-api is an API for an octavia-client.
Installation
To install the Octavia-API module, run the following command in your terminal:
npm install octavia-api
Getting Started.
use with octavia-client. octavia-client
const express = require("express")
const octaviaAPI = require("octavia-api")
const app = express()
app.use(octaviaAPI.init({
token: "my-super-password-123",
}))
app.listen(3000)
Options
app.use(octaviaAPI.init({
path: "/octavia-db"
token: "my-super-password-123",
jsonOptions: {
// express.json options
},
midWare(req, res, next) {
// your midWare
next()
}
}))