Pārlūkot izejas kodu

feat: add select_resource_type api endpoint

add new api route to query resource type list with section and title params
lsc 4 dienas atpakaļ
vecāks
revīzija
fc0e32c55b
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      pbl.js

+ 6 - 0
pbl.js

@@ -10744,6 +10744,12 @@ router.route('/select_resource_detail').all((req, res, next) => {
     getmysql(req, res, "select_resource_detail", json['id']);
 });
 
+//查询资源列表
+router.route('/select_resource_type').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "select_resource_type", json['section'], json['title']);
+});
+
 
 function generateAPIKey(username) {
     let timeStamp = new Date().getTime();