diff --git a/src/index.js b/src/index.js index cd7ab8c..57579e5 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,7 @@ import { checkForBannedWords, email, key, orderBy, searchByTag, url, sanitizeStr import express from "express" import { generateApiKey } from "generate-api-key" import word2vec from "word2vec" +import packageJSON from "./package.json" with { type: "json" } const app = express() const port = 8000 @@ -12,6 +13,7 @@ app.use(express.json()) app.get("/", (req, res) => { res.json({ "message": "Welcome to DRGON! See our documentation to learn how to use our REST API: https://geocml.github.io/docs/", + "version": packageJSON.version }) }) diff --git a/src/package.json b/src/package.json index bb7d31a..8acb825 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "drgon", - "version": "0.2.0", + "version": "3.0", "description": "DRGON is a Distributed Registry of GISystem Over a Network", "main": "index.js", "type": "module",