1.0.7
This commit is contained in:
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 });
|
||||
};
|
||||
Reference in new issue
Block a user