Web API for code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

8 lines
181 B

  1. import { FastifyInstance } from 'fastify';
  2. export const addRoutes = (SERVER: FastifyInstance) => {
  3. SERVER.get('/', async (_, reply) => {
  4. reply.send({hello: 'world'})
  5. });
  6. }