deepak191z commited on
Commit
0c2570e
·
verified ·
1 Parent(s): e33a87f

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +4 -0
server.js CHANGED
@@ -11,6 +11,10 @@ const configData = JSON.parse(configFile);
11
  const fastify = Fastify();
12
  const PORT = 7860;
13
 
 
 
 
 
14
  fastify.post('/search', async (request, reply) => {
15
  const { searchText } = request.body;
16
  const url = 'https://chat.deepseek.com';
 
11
  const fastify = Fastify();
12
  const PORT = 7860;
13
 
14
+ fastify.get('/', async (request, reply) => {
15
+ return reply.send({ message: 'Fastify Playwright API is running' });
16
+ });
17
+
18
  fastify.post('/search', async (request, reply) => {
19
  const { searchText } = request.body;
20
  const url = 'https://chat.deepseek.com';