2017-11-21 00:25:53 -05:00
|
|
|
"use strict";
|
|
|
|
|
2024-07-18 21:35:17 +03:00
|
|
|
import appInfo from "../../services/app_info.js";
|
2017-11-21 00:25:53 -05:00
|
|
|
|
2025-02-13 17:02:03 +01:00
|
|
|
/**
|
|
|
|
* @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: []
|
|
|
|
*/
|
2020-06-20 12:31:38 +02:00
|
|
|
function getAppInfo() {
|
2020-03-09 20:56:43 +01:00
|
|
|
return appInfo;
|
2018-03-30 15:34:07 -04:00
|
|
|
}
|
2017-11-21 00:25:53 -05:00
|
|
|
|
2024-07-18 21:42:44 +03:00
|
|
|
export default {
|
2018-03-30 15:34:07 -04:00
|
|
|
getAppInfo
|
2020-06-20 12:31:38 +02:00
|
|
|
};
|