Add _log operator;Change Fastify's returned data to array
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-02-14 13:45:01 +01:00
parent dcdb6d5fb9
commit 7fa6866a1d
2 changed files with 5 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!

View File

@ -21,6 +21,9 @@ events:
all_components:
_request: all_components.data
_log:
_request: retrieve_components
layout:
contentJustify: center