fix sdk api

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-05 21:14:38 +01:00
parent 95408918ab
commit 5f873898e9
16 changed files with 343 additions and 251 deletions

View File

@@ -11,7 +11,7 @@ declare module 'fastify' {
}
}
const port = parseInt(process.env.API_PORT || '3030', 10);
const port = parseInt(process.env.API_PORT || '3000', 10);
const startServer = async () => {
try {
@@ -43,7 +43,7 @@ const startServer = async () => {
fastify.log.error(error);
});
fastify.get('/', (request, reply) => {
reply.send({ name: 'fastify-typescript' });
reply.send({ name: 'openpanel sdk api' });
});
// fastify.get('/health-check', async (request, reply) => {
// try {