We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c39313 commit df83834Copy full SHA for df83834
internal/traversal/handler.go
@@ -19,7 +19,7 @@ import (
19
func ListFilesInDirectory(w http.ResponseWriter, r *http.Request) {
20
21
/* extracting userID from request */
22
- userID, err := auth.ExtractUsernameFromRequest(r)
+ username, _, err := auth.ExtractDataFromRequest(r)
23
if err != nil {
24
zap.L().Error("Error during getting username in HandleListFiles handler",
25
zap.Error(err),
@@ -36,7 +36,7 @@ func ListFilesInDirectory(w http.ResponseWriter, r *http.Request) {
36
}
37
38
/* list all the files in given filepath */
39
- entries, err := ListFiles(listRequest.FilePath, userID)
+ entries, err := ListFiles(listRequest.FilePath, username)
40
41
zap.L().Warn("File listing error",
42
0 commit comments