mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
refactor virtual folders
The same virtual folder can now be shared among users and different folder quota limits for each user are supported. Fixes #120
This commit is contained in:
@@ -74,11 +74,16 @@ func initializeRouter(staticFilesPath string, profiler bool) {
|
||||
router.Delete(activeConnectionsPath+"/{connectionID}", handleCloseConnection)
|
||||
router.Get(quotaScanPath, getQuotaScans)
|
||||
router.Post(quotaScanPath, startQuotaScan)
|
||||
router.Get(quotaScanVFolderPath, getVFolderQuotaScans)
|
||||
router.Post(quotaScanVFolderPath, startVFolderQuotaScan)
|
||||
router.Get(userPath, getUsers)
|
||||
router.Post(userPath, addUser)
|
||||
router.Get(userPath+"/{userID}", getUserByID)
|
||||
router.Put(userPath+"/{userID}", updateUser)
|
||||
router.Delete(userPath+"/{userID}", deleteUser)
|
||||
router.Get(folderPath, getFolders)
|
||||
router.Post(folderPath, addFolder)
|
||||
router.Delete(folderPath, deleteFolderByPath)
|
||||
router.Get(dumpDataPath, dumpData)
|
||||
router.Get(loadDataPath, loadData)
|
||||
router.Get(webUsersPath, handleGetWebUsers)
|
||||
@@ -87,6 +92,9 @@ func initializeRouter(staticFilesPath string, profiler bool) {
|
||||
router.Post(webUserPath, handleWebAddUserPost)
|
||||
router.Post(webUserPath+"/{userID}", handleWebUpdateUserPost)
|
||||
router.Get(webConnectionsPath, handleWebGetConnections)
|
||||
router.Get(webFoldersPath, handleWebGetFolders)
|
||||
router.Get(webFolderPath, handleWebAddFolderGet)
|
||||
router.Post(webFolderPath, handleWebAddFolderPost)
|
||||
})
|
||||
|
||||
router.Group(func(router chi.Router) {
|
||||
|
||||
Reference in New Issue
Block a user