gennode_registrar

Registers route on gennode_authorization service.

Usage no npm install needed!

<script type="module">
  import gennodeRegistrar from 'https://cdn.skypack.dev/gennode_registrar';
</script>

README

GenNode Registrar

Author

Nathan Mersha

Installation

Gennode registrar is available on npm, type:

$ npm i gennode_registrar --save

and install it globally, now you can use it from the command line.

Description

This module registers service routes on your authorization server. This library is one part of a cluster modules as defined in gennode_authorization

Example

Create New Instance

let gennodeRegistrar = require('gennode_registrar');
let registrar = new gennodeRegistrar("serviceName","serviceCode","http://localhost:3400/auth/service");

Register Service Endpoints

let express = require('express');
let app = express();


registrar.register(app,(error,response,body)=>{});

Contributing

Want to contribute, then visit repo here