Change Fastify output schema
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-02-14 14:07:06 +01:00
parent 33a660eb23
commit 5ec54230f1

View File

@ -3,7 +3,7 @@ const fastify = require('fastify')({ logger: true })
// Declare a route // Declare a route
fastify.get('/', async (request, reply) => { fastify.get('/', async (request, reply) => {
return { data: [ return [
{ {
component: 'VI_IT_VIRTUALIZATION', component: 'VI_IT_VIRTUALIZATION',
version: '2.4.0', version: '2.4.0',
@ -14,7 +14,7 @@ fastify.get('/', async (request, reply) => {
version: '1.3.0', version: '1.3.0',
os: 'Ubuntu 18.04 LTS' os: 'Ubuntu 18.04 LTS'
} }
] } ]
}) })
// Run the server! // Run the server!