Rename methods to match HTTP requests

This commit is contained in:
2022-07-15 20:44:06 +02:00
parent 7fa05ab6d3
commit 56118d611d
10 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
import type { RequestEvent, RequestHandlerOutput } from '@sveltejs/kit'
import { fetchAPI } from '$utils/api'
export async function get({ params }: RequestEvent): Promise<RequestHandlerOutput> {
export async function GET ({ params }: RequestEvent): Promise<RequestHandlerOutput> {
try {
// Get the first photo ID
const firstPhoto = await fetchAPI(`