web/api: move api request creation to saving-handler & limit the type

prerequisites for reusing the requests 👀
This commit is contained in:
wukko
2025-03-06 15:58:31 +06:00
parent 9225b31986
commit f9c0decd4c
4 changed files with 39 additions and 30 deletions

View File

@ -1,5 +1,5 @@
import defaults from "$lib/settings/defaults";
import type { CobaltSettings } from "$lib/types/settings";
import defaults from "./defaults";
export default function lazySettingGetter(settings: CobaltSettings) {
// Returns the setting value only if it differs from the default.