🎨 Add file access control (#9722)

This commit is contained in:
Yingyi / 颖逸 2023-11-22 22:17:18 +08:00 committed by GitHub
parent f5205d846c
commit 4ca62ef701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 139 additions and 65 deletions

1
API.md
View file

@ -1032,6 +1032,7 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
* `code`: non-zero for exceptions
* `-1`: Parameter parsing error
* `403`: Permission denied (file is not in the workspace)
* `404`: Not Found (file doesn't exist)
* `405`: Method Not Allowed (it's a directory)
* `500`: Server Error (stat file failed / read file failed)