mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Refactor API URL configuration
This commit is contained in:
parent
d9198cfddf
commit
577b866bb3
3 changed files with 18 additions and 13 deletions
|
|
@ -13,6 +13,9 @@ export default defineEventHandler(async () => {
|
|||
bind: config?.http.bind,
|
||||
bind_port: config?.http.bind_port,
|
||||
base_url: config?.http.base_url,
|
||||
url: config?.http.bind.includes("http")
|
||||
? `${config?.http.bind}:${config?.http.bind_port}`
|
||||
: `http://${config?.http.bind}:${config?.http.bind_port}`,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue