mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] format
This commit is contained in:
parent
8106178043
commit
071c329f25
1 changed files with 4 additions and 2 deletions
|
@ -38,10 +38,12 @@ export async function renderEndpoint(
|
|||
// 404. Should be handled by 404.astro route if possible.
|
||||
return new Response(null, { status: 404 });
|
||||
}
|
||||
if (typeof handler !== "function") {
|
||||
if (typeof handler !== 'function') {
|
||||
logger.error(
|
||||
'router',
|
||||
`The route "${url.pathname}" exports a value for the method "${method}", but it is of the type ${typeof handler} instead of a function.`
|
||||
`The route "${
|
||||
url.pathname
|
||||
}" exports a value for the method "${method}", but it is of the type ${typeof handler} instead of a function.`
|
||||
);
|
||||
return new Response(null, { status: 500 });
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue