Use _request data directly as rowData
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:
@ -3,7 +3,18 @@ const fastify = require('fastify')({ logger: true })
|
||||
|
||||
// Declare a route
|
||||
fastify.get('/', async (request, reply) => {
|
||||
return { hello: 'world' }
|
||||
return { data: [
|
||||
{
|
||||
component: 'VI_IT_VIRTUALIZATION',
|
||||
version: '2.4.0',
|
||||
os: 'vSphere 7.0U3a'
|
||||
},
|
||||
{
|
||||
component: 'VI_IT_SRV_LIN_UBUNTU',
|
||||
version: '1.3.0',
|
||||
os: 'Ubuntu 18.04 LTS'
|
||||
}
|
||||
] }
|
||||
})
|
||||
|
||||
// Run the server!
|
||||
|
Reference in New Issue
Block a user