mirror of
https://github.com/JuniorDark/RustyHearts-API.git
synced 2026-05-07 14:11:44 -04:00
Version 1.3.0
- Implemented authentication and billing routes for Jpn region. - Refactored and changed the project structure from CommonJS to ES Modules
This commit is contained in:
parent
9584e58143
commit
c3d9e7afb5
76 changed files with 3847 additions and 1109 deletions
18
src/servers/jpnApp.js
Normal file
18
src/servers/jpnApp.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import express, { urlencoded } from 'express';
|
||||
import config from '../config.js';
|
||||
const { ports, ips, logger } = config;
|
||||
import authJpnRouter from '../routes/authJpn.js';
|
||||
import billingJpnRouter from '../routes/billingJpn.js';
|
||||
|
||||
const app = express();
|
||||
app.use(urlencoded({ extended: false, type: 'application/x-www-form-urlencoded' }));
|
||||
app.use('/Auth', authJpnRouter);
|
||||
app.use('/Billing', billingJpnRouter);
|
||||
|
||||
const startServer = () => {
|
||||
return app.listen(ports.jpnApp, ips.local, () => {
|
||||
logger.info(`API (JPN) listening on ${ips.local}:${ports.jpnApp}`);
|
||||
});
|
||||
};
|
||||
|
||||
export { app, startServer };
|
||||
Loading…
Add table
Add a link
Reference in a new issue