express-api-user-management-signup
Advanced tools
Comparing version 0.0.22 to 0.0.23
{ | ||
"name": "express-api-user-management-signup", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "adds user frontend with login / registration features to your (express) application. Startingpoint for DIY api management", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -27,11 +27,8 @@ express-api-user-management-signup | ||
Using the code below, it will add extra routes to your existing express app: | ||
In your existing express-app, just put this above app.listen(....) : | ||
var express = require("express"); | ||
var port = process.env.PORT || 8111 | ||
var host = process.env.HOST || "127.0.0.1" | ||
var app = express(); | ||
require("./usermanagement.js"); | ||
//>>>>>>>>>>>> BEGIN OF CODE | ||
where usermanagement.js looks something like this: | ||
var config = { | ||
@@ -61,9 +58,5 @@ webhook: { | ||
} | ||
require("coffee-script/register") | ||
require('express-api-user-management-signup/lib')(app,express,webhookurl,requestdata,mongocfg) | ||
module.parent.require("coffee-script/register") | ||
module.parent.require('express-api-user-management-signup/lib')(app,express,config) | ||
//<<<<<<<<<<<< END OF CODE | ||
app.listen(....) | ||
# Features: | ||
@@ -70,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
415450
109