Add missing file & add ENV setting for URL Path

This commit is contained in:
duckietm 2022-12-19 08:50:59 +01:00
parent 7ff24055c9
commit f8d08eb37c
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
API_HOST=localhost
API_PORT=3030
IMAGER_PATH='/'
AVATAR_SAVE_PATH=C:/nitro-converted-assets
AVATAR_ACTIONS_URL=https://website.com/gamedata/HabboAvatarActions.json
AVATAR_FIGUREDATA_URL=https://website.com/gamedata/FigureData.json

1
index.ts Normal file
View File

@ -0,0 +1 @@
require('./src/main');

View File

@ -17,9 +17,10 @@ async function init(): Promise<void>
await AvatarRenderManager.init();
const router = express();
router.get('/', HttpRouter);
const urlpath = (process.env.IMAGER_PATH as string);
router.get(urlpath, HttpRouter);
const host = (process.env.API_HOST as string);
const port = parseInt(process.env.API_PORT);