11 lines
265 B
TypeScript
Raw Normal View History

2022-03-01 11:10:10 +01:00
import { ErrorHandler } from '$lib/database';
2022-03-01 00:08:54 +01:00
import { configureHAProxy } from '$lib/haproxy/configuration';
2022-02-10 15:47:44 +01:00
export default async function () {
2022-02-27 11:52:05 +01:00
try {
2022-03-01 00:08:54 +01:00
return await configureHAProxy();
2022-02-27 11:52:05 +01:00
} catch (error) {
2022-03-01 15:22:11 +01:00
return ErrorHandler(error.response?.body || error);
2022-02-27 11:52:05 +01:00
}
2022-02-10 15:47:44 +01:00
}