Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- put(CREATE_DIRECTORY, (request, response) -> {
- return folderController.handleCreateNewFolder(setRequest(request, configuration), response);
- }, json);
- private static Request setRequest(Request request, Configuration configuration){
- Integer userId = new SessionDataDao(configuration).fetchBySessionId(request.queryParams("session")).get(0).getUserId();
- String userName = new UsersDao(configuration).fetchOneById(userId).getUserName();
- String oldPath = request.params(":path");
- System.out.println("!!!!!!!");
- request.attribute(":path", "%2F"+userName+oldPath);
- return request;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement