|
|
@@ -10750,6 +10750,25 @@ router.route('/select_resource_type').all((req, res, next) => {
|
|
|
getmysql(req, res, "select_resource_type", json['section'], json['title']);
|
|
|
});
|
|
|
|
|
|
+//更新资源状态
|
|
|
+router.route('/update_resource_status').all((req, res, next) => {
|
|
|
+ postmysql(req, res, "update_resource_status");
|
|
|
+});
|
|
|
+
|
|
|
+//复制资源
|
|
|
+router.route('/copy_resource').all((req, res, next) => {
|
|
|
+ postmysql(req, res, "copy_resource");
|
|
|
+});
|
|
|
+
|
|
|
+//删除资源
|
|
|
+router.route('/delete_resource').all((req, res, next) => {
|
|
|
+ postmysql(req, res, "delete_resource");
|
|
|
+});
|
|
|
+
|
|
|
+//排序资源
|
|
|
+router.route('/sort_resource').all((req, res, next) => {
|
|
|
+ postmysql(req, res, "sort_resource");
|
|
|
+});
|
|
|
|
|
|
function generateAPIKey(username) {
|
|
|
let timeStamp = new Date().getTime();
|