fix(RECIPE-0008): complete iteration 1 — resolve all TypeScript strict mode errors
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { json } from '@sveltejs/kit';
|
||||
import type { RequestHandler } from './$types';
|
||||
import { uploadRecipeWithIngredientsDTO, uploadRecipeImage } from '$lib/server/tandoor';
|
||||
|
||||
export async function POST({ request }) {
|
||||
export const POST: RequestHandler = async ({ request }) => {
|
||||
const { recipe } = await request.json();
|
||||
|
||||
if (!recipe) {
|
||||
|
||||
Reference in New Issue
Block a user