mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-13 22:05:20 -05:00
Renamed wiiu/3ds services to account/nasc
This commit is contained in:
@@ -11,8 +11,8 @@ const config = require('./config.json');
|
||||
const { http: { port } } = config;
|
||||
const app = express();
|
||||
|
||||
const accountWiiU = require('./services/wiiu');
|
||||
const account3DS = require('./services/3ds');
|
||||
const account = require('./services/account');
|
||||
const nasc = require('./services/nasc');
|
||||
const datastore = require('./services/datastore');
|
||||
|
||||
// START APPLICATION
|
||||
@@ -29,8 +29,8 @@ app.use(express.urlencoded({
|
||||
app.use(xmlparser);
|
||||
|
||||
// import the servers into one
|
||||
app.use(accountWiiU);
|
||||
app.use(account3DS);
|
||||
app.use(account);
|
||||
app.use(nasc);
|
||||
app.use(datastore);
|
||||
|
||||
// 404 handler
|
||||
|
||||
@@ -9,11 +9,11 @@ const routes = require('./routes');
|
||||
// Router to handle the subdomain restriction
|
||||
const account = express.Router();
|
||||
|
||||
logger.info('[ACCOUNT - WiiU] Importing middleware');
|
||||
logger.info('[ACCOUNT] Importing middleware');
|
||||
account.use(pnidMiddleware);
|
||||
|
||||
// Setup routes
|
||||
logger.info('[ACCOUNT - WiiU] Applying imported routes');
|
||||
logger.info('[ACCOUNT] Applying imported routes');
|
||||
account.use('/v1/api/admin', routes.ADMIN);
|
||||
account.use('/v1/api/content', routes.CONTENT);
|
||||
account.use('/v1/api/devices', routes.DEVICES);
|
||||
@@ -27,7 +27,7 @@ account.use('/v1/api/support', routes.SUPPORT);
|
||||
const router = express.Router();
|
||||
|
||||
// Create subdomains
|
||||
logger.info('[ACCOUNT - WiiU] Creating \'account\' subdomain');
|
||||
logger.info('[ACCOUNT] Creating \'account\' subdomain');
|
||||
router.use(subdomain('account', account));
|
||||
|
||||
module.exports = router;
|
||||
@@ -7,14 +7,14 @@ const routes = require('./routes');
|
||||
const datastore = express.Router();
|
||||
|
||||
// Setup routes
|
||||
logger.info('[CDN] Applying imported routes');
|
||||
logger.info('[DATASTORE] Applying imported routes');
|
||||
datastore.use(routes.UPLOAD);
|
||||
|
||||
// Main router for endpoints
|
||||
const router = express.Router();
|
||||
|
||||
// Create subdomains
|
||||
logger.info('[CDN] Creating \'datastore\' subdomain');
|
||||
logger.info('[DATASTORE] Creating \'datastore\' subdomain');
|
||||
router.use(subdomain('datastore', datastore));
|
||||
|
||||
module.exports = router;
|
||||
@@ -5,18 +5,18 @@ const subdomain = require('express-subdomain');
|
||||
const logger = require('../../../logger');
|
||||
const routes = require('./routes');
|
||||
|
||||
// Main router for endpoints
|
||||
const router = express.Router();
|
||||
|
||||
// Router to handle the subdomain restriction
|
||||
const nasc = express.Router();
|
||||
|
||||
// Create subdomains
|
||||
logger.info('[ACCOUNT - 3DS] Creating \'nasc\' subdomain');
|
||||
router.use(subdomain('nasc', nasc));
|
||||
|
||||
// Setup routes
|
||||
logger.info('[ACCOUNT - 3DS] Applying imported routes');
|
||||
logger.info('[NASC] Applying imported routes');
|
||||
nasc.use('/ac', routes.AC);
|
||||
|
||||
// Main router for endpoints
|
||||
const router = express.Router();
|
||||
|
||||
// Create subdomains
|
||||
logger.info('[NASC] Creating \'nasc\' subdomain');
|
||||
router.use(subdomain('nasc', nasc));
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user