Change Fastify output schema
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2022-02-14 14:07:06 +01:00
parent 33a660eb23
commit 5ec54230f1
1 changed files with 2 additions and 2 deletions

View File

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