This commit is contained in:
proudparrot2
2024-04-22 09:39:55 -05:00
commit be1599a8cb
50 changed files with 4276 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { NextApiRequest, NextApiResponse } from 'next'
import { createBareServer } from '@tomphttp/bare-server-node'
const bare = createBareServer('/api/bare/', {
logErrors: false,
localAddress: undefined,
maintainer: {
email: 'contact@proudparrot2.tech',
website: 'https://github.com/proudparrot2/'
}
})
export const config = {
api: {
externalResolver: true
}
}
export default function handler(req: NextApiRequest, res: NextApiResponse) {
bare.routeRequest(req, res)
}