Files
dockhand/src/routes/api/stacks/base-path/+server.ts
T
2026-01-11 09:01:42 +01:00

15 lines
414 B
TypeScript

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 });
};