1
0
This commit is contained in:
2023-02-21 18:31:01 +01:00
parent 455cb63652
commit b6e6a94a1e
20 changed files with 495 additions and 21 deletions

View File

@@ -20,7 +20,7 @@ import java.nio.file.Path;
import java.util.Optional;
@Controller
public class NotesController implements InitializingBean {
public class NotesController {
private static final Logger logger = LoggerFactory.getLogger(NotesController.class);
@Autowired
@@ -42,6 +42,8 @@ public class NotesController implements InitializingBean {
@GetMapping("/notes")
public String start(Model model, @RequestParam(required = false) String notePath) {
this.filesService.createAppDirectoryIfNotExists(this.app);
final Optional<Path> optNotePath = notePathToPath(notePath);
if(optNotePath.isPresent()) {
@@ -121,9 +123,4 @@ public class NotesController implements InitializingBean {
return "redirect:?notePath=" + currentPath;
}
@Override
public void afterPropertiesSet() throws Exception {
//this.filesService.createAppDirectory(this.app);
}
}