mirror of
https://github.com/billsonnn/nitro-imager
synced 2025-01-18 23:06:27 +01:00
Add missing file & add ENV setting for URL Path
This commit is contained in:
parent
7ff24055c9
commit
f8d08eb37c
1
.env.new
1
.env.new
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user