'use strict'; const pan = require('../../controllers/file'); module.exports = function (app, router, opts, panCode) { router.get('/create/struct/dir', pan.createProjectDir); router.get('/get/file/dirs', pan.getFileDirs); router.get('/netdisk-files/dir/delete', pan.delFileDir); router.get('/netdisk-files/struct/dir/update', pan.updateStructDir(opts)) router.post('/netdisk-files/upload', pan.uploadFile); router.get('/netdisk-files/delete', pan.deleteFile); router.get('/netdisk-files/query', pan.getFileList); };