You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
552 B
21 lines
552 B
'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);
|
|
|
|
};
|