Add _log operator;Change Fastify's returned data to array
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dcdb6d5fb9
commit
7fa6866a1d
@ -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!
|
||||||
|
@ -21,6 +21,9 @@ events:
|
|||||||
all_components:
|
all_components:
|
||||||
_request: all_components.data
|
_request: all_components.data
|
||||||
|
|
||||||
|
_log:
|
||||||
|
_request: retrieve_components
|
||||||
|
|
||||||
layout:
|
layout:
|
||||||
contentJustify: center
|
contentJustify: center
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user