@weeb_services/wapi-core

1.5.0 • Public • Published

awoo

wapi-core

Utility module for weeb.sh apis

js-standard-style

How to use it:

  1. Install via yarn (or npm if u are a pleb)
yarn add @weeb_services/wapi-core

npm i @weeb_services/wapi-core
  1. Require the module and use its stuff
const { BaseMiddleware, BaseRouter, Constants, GenericRouter, WildcardRouter } = require('@weeb_services/wapi-core');

How to develop with it

  • When adding a new middleware extend the BaseMiddleware. To add your middleware to the app itself, add it via it's .middleware() function
  • When adding a new router extend the BaseRouter, to add your router to the app itself, add it via it's .router() function

Readme

Keywords

none

Package Sidebar

Install

npm i @weeb_services/wapi-core

Weekly Downloads

10

Version

1.5.0

License

MIT

Unpacked Size

18.7 kB

Total Files

21

Last publish

Collaborators

  • akio
  • wolke