mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 14:05:36 +05:00
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
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:
parent
30285e84c6
commit
aaca8c7f3c
3 changed files with 55 additions and 18 deletions
|
@ -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}`);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue