Moving config api endpoints to their own file..

This commit is contained in:
Roland 2024-12-03 22:30:12 -07:00
parent fc084e2421
commit 376850ceeb
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
10 changed files with 190 additions and 139 deletions

View file

@ -19,7 +19,7 @@ import {
getVideo,
getVideosStatistics,
postImportConfig,
postSaveConfig,
postDumpConfig,
saveSettings,
searchArchives,
searchChannels,
@ -722,7 +722,7 @@ export const useConfigs = () => {
const saveConfig = async (fileName) => {
try {
await postSaveConfig(fileName);
await postDumpConfig(fileName);
} catch (e) {
console.error(e);
}