update setup
This commit is contained in:
@@ -3,7 +3,7 @@ const path = require( 'path' );
|
||||
// Check if package is installed or not to pickup the right config file
|
||||
//const src = ( __dirname.indexOf( '/node_modules/' ) > -1 ) ? '../../..' : '..';
|
||||
//const config = require( path.normalize( `${__dirname}/${src}/config.js` ) );
|
||||
const config = require( '../config.js' );
|
||||
const config = require( '../tribes/townconf.js' );
|
||||
/*
|
||||
Check que le header contient des éléments necessaire pour les
|
||||
routes utilisant tribeid / language / token / uuid
|
||||
|
@@ -2,7 +2,7 @@ const fs = require( 'fs-extra' );
|
||||
const glob = require( 'glob' );
|
||||
const path = require( 'path' );
|
||||
|
||||
const config = require( '../config.js' );
|
||||
const config = require( '../tribes/townconf.js' );
|
||||
|
||||
const hasAccessrighton = ( object, action, ownby ) => {
|
||||
/*
|
||||
|
@@ -7,7 +7,7 @@ const glob = require( 'glob' );
|
||||
// Check if package is installed or not to pickup the right config file
|
||||
//const src = '..'; // ( __dirname.indexOf( '/node_modules/' ) > -1 ) ? '../../..' : '..';
|
||||
//const config = require( path.normalize( `${__dirname}/${src}/config.js` ) );
|
||||
const config = require( '../config.js' );
|
||||
const config = require( '../tribes/townconf.js' );
|
||||
const isAuthenticated = ( req, res, next ) => {
|
||||
/*
|
||||
check if authenticated with valid token
|
||||
|
Reference in New Issue
Block a user