feat/api-prox: finding of working api base
Some checks are pending
Build and Publish 'anix-api-prox' to Docker Hub / publish (push) Waiting to run
Build and Publish 'anix' to Docker Hub / publish (push) Waiting to run

fix/anix: broken api url
This commit is contained in:
Kentai Radiquum 2025-08-16 03:03:22 +05:00
parent 30285e84c6
commit aaca8c7f3c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 55 additions and 18 deletions

View file

@ -3,6 +3,7 @@ import {
ANIXART_HEADERS,
ANIXART_HEADERST,
asJSON,
getAnixartApiBaseUrl,
GetHook,
logger,
PostHook,
@ -360,7 +361,8 @@ app.post("/*path", async (req, res) => {
return;
});
app.listen(PORT, HOST, function () {
app.listen(PORT, HOST, async function () {
loadHooks();
await getAnixartApiBaseUrl();
logger.info(`Server listen: http://${HOST}:${PORT}`);
});