@wize/rest-runtime

Wizni rest Runtime

Usage no npm install needed!

<script type="module">
  import wizeRestRuntime from 'https://cdn.skypack.dev/@wize/rest-runtime';
</script>

README

REST SOURCE

@wize/rest-runtime

Description

Register api for rest source objects.

Usage

Installation

npm install --save @wize/rest-runtime

Initialize

import restRuntime from '@wize/rest-runtime'
.
.
.
/*
app : Koa app in which the routes will be registered.
directoryName : directory of the source file. 
*/
export function init() {

    restRuntime(this.app,__dirname);

}

Test

npm run test

License

MIT License