mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
chore: 404 page function name change
This commit is contained in:
parent
2b045439a4
commit
b2b4ef9de7
@ -1,8 +1,8 @@
|
||||
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next'
|
||||
|
||||
const HelloWorld: NextApiHandler = (_req: NextApiRequest, res: NextApiResponse) => {
|
||||
const NotFound: NextApiHandler = (_req: NextApiRequest, res: NextApiResponse) => {
|
||||
res.statusCode = 404
|
||||
res.json({ code: 404, message: '요청하신 URL에 페이지가 존재하지 않습니다.' })
|
||||
}
|
||||
|
||||
export default HelloWorld
|
||||
export default NotFound
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user