Update versions

This commit is contained in:
2021-06-18 16:49:05 +02:00
parent 2fab62215e
commit f97c2e2737
3 changed files with 124 additions and 123 deletions

View File

@@ -4,12 +4,12 @@ import {HttpContextContract} from "@ioc:Adonis/Core/HttpContext";
import Env from "@ioc:Adonis/Core/Env";
const BASE_URL = Env.get('APP_URL')
const VERSION = require('../package.json')
const { version } = require('../package.json')
Route.get('/', async ({response}: HttpContextContract) => {
return response.status(200).send({
domain: BASE_URL,
version: VERSION,
version: version,
source: `${BASE_URL}/source`,
healthCheck: `${BASE_URL}/health`,
links: `${BASE_URL}/links`