zengyicheng 3 years ago
parent
commit
3ef59c600b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      edurouter.js

+ 4 - 0
edurouter.js

@@ -38,6 +38,10 @@ function asynnext(req, res, next) {
 router.route('/insertWork').all((req, res, next) => {
 router.route('/insertWork').all((req, res, next) => {
     postmysql(req, res, "insertWork");
     postmysql(req, res, "insertWork");
 });
 });
+router.route('/selectWork').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectWork", json['page'], 7);
+});
 
 
 
 
 queryString = function(url) {
 queryString = function(url) {