Change Fastify output schema
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
33a660eb23
commit
5ec54230f1
@ -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!
|
||||||
|
Reference in New Issue
Block a user