fusero-site-frontend/fusero-backend/index.ts
2025-07-18 18:16:10 +02:00

21 lines
360 B
TypeScript

import fastify from 'fastify';
const server = fastify();
server.get('/', async (request, reply) => {
return { hello: 'world' };
});
const start = async () => {
try {
await server.listen({ port: 3000 });
console.log('Server listening on http://localhost:3000');
} catch (err) {
server.log.error(err);
process.exit(1);
}
};
start();