Renamed wiiu/3ds services to account/nasc

This commit is contained in:
Jonathan Barrow
2021-09-12 09:56:14 -04:00
parent e1559f55a5
commit c1d095b8d9
16 changed files with 17 additions and 17 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;