This commit is contained in:
Jarek Krochmalski committed 2026-01-11 09:01:42 +01:00
1 parent c15355e159
commit 851e56bc57
23 files changed
+8923

No files matched your search

@@ -0,0 +1,14 @@
import { json } from '@sveltejs/kit';
import { getStacksDir } from '$lib/server/stacks';
import type { RequestHandler } from './$types';
/**
* GET /api/stacks/base-path
*
* Returns the default Dockhand stacks directory path.
* This is where stacks are stored by default ($DATA_DIR/stacks/).
*/
export const GET: RequestHandler = async () => {
const basePath = getStacksDir();
return json({ basePath });
};