mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-08 04:22:09 +00:00
Follow up to #5928 to remove a few more "now" references and replace with "vercel" where appropriate.
11 lines
338 B
TypeScript
11 lines
338 B
TypeScript
import { VercelRequest, VercelResponse } from '@vercel/node';
|
|
import { getExampleList } from '../_lib/examples/example-list';
|
|
import { withApiHandler } from '../_lib/util/with-api-handler';
|
|
|
|
export default withApiHandler(async function (
|
|
req: VercelRequest,
|
|
res: VercelResponse
|
|
) {
|
|
res.status(200).json(await getExampleList());
|
|
});
|