import { NextResponse } from 'next/server'; import { ModelError } from '../../models/model'; import { HestiaPlaceData } from '../../models/place'; /** * This route provides an endpoint for a client side fetch request to call * the `findById()` method on the Place Model. It should be imported into a theme * at `app/api/places/[id]/route.ts` and called inside the exported GET function. * * The GET function in the theme takes in the request and an `id` param as * an argument which should in turn be passed to this function as an argument. * * @example * ```tsx * import '../../../api'; * * import routes from '../../../routes'; * * export async function GET( * request: Request, * { * params, * }: { * params: { id: string }; * } * ) { * return routes.places.show(request, { params }); * } * ``` * * The endpoint can then be called at `/api/places/`. * * @exmaple * ```tsx * const placeResponse = await fetch(`/api/places/${currentSearch.placeId}`); * ``` */ export default function show(_request: Request, { params, }: { params: { id: string; }; }): Promise>; //# sourceMappingURL=places-show.d.ts.map