6 lines
167 B
TypeScript
6 lines
167 B
TypeScript
export default eventHandler((event) => {
|
|
const { status } = getQuery(event);
|
|
setResponseStatus(event, Number(status));
|
|
return useResponseError(`${status}`);
|
|
});
|