var BaseApi = require('./baseApi');

class PageApi extends BaseApi {

    index(req, res) {
        res.render('index');
    }

    mock(req, res) {
        res.render('admin');
    }
}


var pageApi = new PageApi();
module.exports = [{
    method: 'get',
    route: `/index`,
    func: pageApi.index
}, {
    method: 'get',
    route: `/mock`,
    func: pageApi.mock
}];

@@ -125,20 +125,21 @@
  %7D%0A%0A    
-mock
+admin
 (req, re
@@ -332,20 +332,21 @@
 oute: %60/
-mock
+admin
 %60,%0A    f
@@ -362,12 +362,13 @@
 Api.
-mock
+admin
 %0A%7D%5D;

change mock to admin