mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 02:24:17 +00:00
added version on base endpoint
This commit is contained in:
parent
a81654cfef
commit
4f03c56e94
@ -1,9 +1,11 @@
|
||||
const fs = require("fs")
|
||||
const path = require("path")
|
||||
const http = require("http")
|
||||
const https = require("https")
|
||||
|
||||
const io = require("socket.io")
|
||||
|
||||
const pkgjson = require(path.resolve(process.cwd(), "package.json"))
|
||||
|
||||
const tokenizer = require("corenode/libs/tokenizer")
|
||||
const { serverManifest, outputServerError, internalConsole } = require("./lib")
|
||||
const InternalConsole = global.InternalInternalConsole = internalConsole
|
||||
@ -272,6 +274,7 @@ class Server {
|
||||
fn: (req, res) => {
|
||||
return res.json({
|
||||
LINEBRIDGE_SERVER_VERSION: LINEBRIDGE_SERVER_VERSION,
|
||||
version: pkgjson.version ?? "unknown",
|
||||
usid: this.usid,
|
||||
requestTime: new Date().getTime(),
|
||||
endpointsMap: this.endpoints_map,
|
||||
|
Loading…
x
Reference in New Issue
Block a user