Skip to content

Commit

Permalink
Merge pull request #37 from geoCML/show-version-root
Browse files Browse the repository at this point in the history
Show version number under root route
  • Loading branch information
TristanDamron authored Dec 1, 2024
2 parents 73d20f8 + 0b3f29c commit 344714f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
})
})

Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 344714f

Please # to comment.