|
|
@ -3,7 +3,6 @@ import fastify from 'fastify' |
|
|
|
import helmet from 'fastify-helmet' |
|
|
|
import cors from 'fastify-cors' |
|
|
|
import swagger from 'fastify-swagger' |
|
|
|
|
|
|
|
import api from './plugins/api' |
|
|
|
|
|
|
|
config() |
|
|
@ -29,7 +28,7 @@ server.register(swagger, { |
|
|
|
info: { |
|
|
|
title: 'Flexor API', |
|
|
|
description: 'API server for Flexor.', |
|
|
|
version: '1.0.0', |
|
|
|
version: process.env.NPM_PACKAGE_VERSION, |
|
|
|
}, |
|
|
|
tags: [ |
|
|
|
{ name: 'app', description: 'App endpoints.' }, |
|
|
@ -59,5 +58,5 @@ server.listen(port, '0.0.0.0', (err, address) => { |
|
|
|
process.exit(1) |
|
|
|
} |
|
|
|
|
|
|
|
server.log.info(`Listening on ${address}`) |
|
|
|
server.log.info(`✊🏾 Flexor listening at ${address}`) |
|
|
|
}) |