fix: update API routes for fetching raw paste content and deleting pastes

This commit is contained in:
2026-01-04 09:55:15 -05:00
parent 2c24af5ac9
commit 48543c7ff0
2 changed files with 6 additions and 6 deletions
@@ -12,7 +12,7 @@ export const load: PageServerLoad = async ({ params, fetch }) => {
};
}
const pasteData = (await paste.json()) as Paste;
const pasteContent = await fetch(`/api/paste/raw/${id}`);
const pasteContent = await fetch(`/api/paste/${id}/raw`);
const pasteOptions = await fetch('/api/paste/create/options');
const options = await pasteOptions.json();
const content = await pasteContent.text();