adding 'open in fredy'

This commit is contained in:
orangecoding
2026-04-21 19:42:39 +02:00
parent 8c5607e20b
commit c78472bd19
26 changed files with 345 additions and 58 deletions

View File

@@ -18,6 +18,9 @@ generalSettingsRouter.get('/', async (req, res) => {
});
generalSettingsRouter.post('/', async (req, res) => {
const { sqlitepath, ...appSettings } = req.body || {};
if (typeof appSettings.baseUrl === 'string') {
appSettings.baseUrl = appSettings.baseUrl.trim().replace(/\/$/, '');
}
const localSettings = await getSettings();
if (localSettings.demoMode) {