feat: integrate SvelteKit for seamless navigation and improved data loading
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { a as api } from "../../../chunks/api.js";
|
||||
async function load() {
|
||||
try {
|
||||
const settings = await api.getSettings();
|
||||
return {
|
||||
settings
|
||||
};
|
||||
} catch (error) {
|
||||
console.error("Failed to load settings:", error);
|
||||
return {
|
||||
settings: {
|
||||
environments: [],
|
||||
settings: {
|
||||
backup_path: "",
|
||||
default_environment_id: null
|
||||
}
|
||||
},
|
||||
error: "Failed to load settings"
|
||||
};
|
||||
}
|
||||
}
|
||||
export {
|
||||
load
|
||||
};
|
||||
Reference in New Issue
Block a user