Skip to content

Commit 08ee9f6

Browse files
authored
Merge pull request #17 from dadiorchen/json-datasource
feat: be able check version online
2 parents f34c882 + e4d7bf5 commit 08ee9f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

greenstand/app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ app.get("/:z/:x/:y.grid.json", async (req, res) => {
147147

148148

149149
app.use("*", (_, res) => {
150-
res.status(200).send("Welcome to Greenstand tile server");
150+
var pjson = require('../package.json');
151+
res.status(200).send(`Welcome to Greenstand tile server, version:${pjson.version}`);
151152
});
152153

153154
module.exports = app;

0 commit comments

Comments
 (0)