Weeb API core
npm install @weeb_services/wapi-core!awoo
1. Install via yarn (or npm if u are a pleb)
``
yarn add @weeb_services/wapi-core
npm i @weeb_services/wapi-core
``
2. Require the module and use its stuffjs`
const { BaseMiddleware, BaseRouter, Constants, GenericRouter, WildcardRouter } = require('@weeb_services/wapi-core');
- When adding a new middleware extend the BaseMiddleware.BaseRouter`,
To add your middleware to the app itself,
add it via it's .middleware() function
- When adding a new router extend the
to add your router to the app itself,
add it via it's .router() function