Scope server snapshots and keep completed history off fleet refreshes
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { kick } from '$lib/server/pipeline/worker.js';
|
||||
import { json } from '@sveltejs/kit';
|
||||
import { destroyServer } from '$lib/server/provisioning/index.js';
|
||||
import { serverSnapshot } from '$lib/server/fleet/snapshot.js';
|
||||
|
||||
export function GET({ params }: { params: { name: string } }) {
|
||||
return json(serverSnapshot(params.name));
|
||||
}
|
||||
|
||||
export async function DELETE({ params }: { params: { name: string } }) {
|
||||
const name = params.name;
|
||||
|
||||
Reference in New Issue
Block a user