Spaces:
Sleeping
Sleeping
Update server.js
Browse files
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';
|