mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: update API routes for paste options and recent pastes
This commit is contained in:
@@ -2,7 +2,7 @@ import type { PageServerLoad } from './$types';
|
||||
|
||||
export const load: PageServerLoad = async ({ fetch, url }) => {
|
||||
try {
|
||||
const optionsRes = await fetch('/api/paste/create/options');
|
||||
const optionsRes = await fetch('/api/paste/info');
|
||||
const authInfo = await fetch('/api/auth/info');
|
||||
const options = await optionsRes.json();
|
||||
const auth = await authInfo.json();
|
||||
|
||||
Reference in New Issue
Block a user