Browse Source

✨ feat: 增加部分管理员接口

Pchen. 8 months ago
parent
commit
48ce03b664
1 changed files with 20 additions and 0 deletions
  1. 20 0
      apis/Public/GetAppVersion.js

+ 20 - 0
apis/Public/GetAppVersion.js

@@ -0,0 +1,20 @@
+const API = require("../../lib/API");
+const { BaseStdResponse } = require("../../BaseStdResponse")
+
+class GetAppVersion extends API {
+    constructor() {
+        super();
+
+        this.noEncrypt()
+        this.setPath('/Public/GetAppVersion')
+        this.setMethod('GET')
+    }
+
+    async onRequest(req, res) {
+        res.json({
+            ...BaseStdResponse.OK
+        })
+    }
+}
+
+module.exports.GetAppVersion = GetAppVersion