mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
57 lines
1.6 KiB
TypeScript
57 lines
1.6 KiB
TypeScript
"use strict";
|
|
|
|
import appInfo from "../../services/app_info.js";
|
|
|
|
/**
|
|
* @swagger
|
|
* /api/app-info:
|
|
* get:
|
|
* summary: Get installation info
|
|
* operationId: app-info
|
|
* externalDocs:
|
|
* description: Server implementation
|
|
* url: https://github.com/TriliumNext/Notes/blob/v0.91.6/src/services/app_info.ts
|
|
* responses:
|
|
* '200':
|
|
* content:
|
|
* application/json:
|
|
* schema:
|
|
* type: object
|
|
* properties:
|
|
* appVersion:
|
|
* type: string
|
|
* example: "0.91.6"
|
|
* dbVersion:
|
|
* type: integer
|
|
* example: 228
|
|
* nodeVersion:
|
|
* type: string
|
|
* description: "value of process.version"
|
|
* syncVersion:
|
|
* type: integer
|
|
* example: 34
|
|
* buildDate:
|
|
* type: string
|
|
* example: "2024-09-07T18:36:34Z"
|
|
* buildRevision:
|
|
* type: string
|
|
* example: "7c0d6930fa8f20d269dcfbcbc8f636a25f6bb9a7"
|
|
* dataDirectory:
|
|
* type: string
|
|
* example: "/var/lib/trilium"
|
|
* clipperProtocolVersion:
|
|
* type: string
|
|
* example: "1.0"
|
|
* utcDateTime:
|
|
* $ref: '#/components/schemas/UtcDateTime'
|
|
* security:
|
|
* - session: []
|
|
*/
|
|
function getAppInfo() {
|
|
return appInfo;
|
|
}
|
|
|
|
export default {
|
|
getAppInfo
|
|
};
|