Skip to content

Commit d542c49

Browse files
committed
add omg
1 parent 90efe20 commit d542c49

File tree

1 file changed

+21
-0
lines changed
  • frontend/overlay/pages/api

1 file changed

+21
-0
lines changed

frontend/overlay/pages/api/omg.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { NextApiRequest, NextApiResponse } from 'next';
2+
import { createHandler } from '@/utils/createHandler';
3+
const behold = (req: NextApiRequest, res: NextApiResponse) => {
4+
if (req.method !== 'POST') {
5+
res.status(405).send('Crazy Cat!');
6+
return;
7+
}
8+
return createHandler({
9+
req,
10+
res,
11+
name: 'omg',
12+
description: 'OMG!',
13+
handler: () => ({
14+
audio: 'https://media.codingcat.dev/video/upload/f_mp3/main-codingcatdev-video/omg.mp3',
15+
image:
16+
'https://media.codingcat.dev/video/upload/fl_lossy,q_10,c_crop,w_0.8,h_0.8,f_gif,e_loop/main-codingcatdev-video/omg.gif',
17+
duration: 3
18+
})
19+
});
20+
};
21+
export default behold;

0 commit comments

Comments
 (0)