core: fix setup

This commit is contained in:
undefined committed 2024-03-26 11:12:08 +08:00
1 parent afde1c5213
commit 6ddbc8d0a7
1 file changed
+1 -1
+1 -1
View File
@@ -73,7 +73,7 @@ async function post(ctx: Context) {
),
]);
fs.ensureDirSync(path.resolve(os.homedir(), '.hydro'));
fs.writeFileSync(path.resolve(os.homedir(), '.hydro', 'config.json'), JSON.stringify({ url }));
fs.writeFileSync(path.resolve(os.homedir(), '.hydro', 'config.json'), JSON.stringify({ url: ctx.request.body.url }));
ctx.body = '<h1>Done! Hydro is now starting.</h1>';
resolve?.();
} catch (e) {