Selaa lähdekoodia

feat: add resource related api endpoints

add add, update and query resource api routes using postmysql and getmysql
lsc 5 päivää sitten
vanhempi
commit
3b78324996
1 muutettua tiedostoa jossa 16 lisäystä ja 0 poistoa
  1. 16 0
      pbl.js

+ 16 - 0
pbl.js

@@ -10728,6 +10728,22 @@ router.route('/addPPTOp').all((req, res, next) => {
     postmysql(req, res, "addPPTOp");
 });
 
+//添加资源
+router.route('/add_resource').all((req, res, next) => {
+    postmysql(req, res, "add_resource");
+});
+
+//修改资源
+router.route('/update_resource').all((req, res, next) => {
+    postmysql(req, res, "update_resource");
+});
+
+//查询资源详情
+router.route('/select_resource_detail').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "select_resource_detail", json['id']);
+});
+
 
 function generateAPIKey(username) {
     let timeStamp = new Date().getTime();