UNPKG

stoker

Version:

Utilities for hono and @hono/zod-openapi

9 lines (8 loc) 270 B
import { NOT_FOUND } from "../http-status-codes.js"; import { NOT_FOUND as NOT_FOUND_MESSAGE } from "../http-status-phrases.js"; const notFound = (c) => { return c.json({ message: `${NOT_FOUND_MESSAGE} - ${c.req.path}` }, NOT_FOUND); }; export default notFound;