Skip to content

Commit a4ca54a

Browse files
committed
URL PATH of Actions - Controller Methods Refactoring
1 parent 6add71f commit a4ca54a

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

etc/TODO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,5 @@ https://maven.apache.org/enforcer/enforcer-rules/requireActiveProfile.html
8585
https://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html
8686
https://www.baeldung.com/maven-enforcer-plugin
8787

88+
# 2.3.14
89+
Fixed #127

run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ function runHerokuLocal() {
3535
function main() {
3636
#runGithubTestBuild
3737
#setupHeroku
38-
#runHerokuLocal
38+
runHerokuLocal
3939
#runDev
40-
runTest
40+
#runTest
4141
}
4242

4343
main

src/main/java/org/woehlke/simpleworklist/project/ProjectRootController.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
@Slf4j
2828
@Controller
29-
@RequestMapping(path = "/project/root")
29+
@RequestMapping(path = "/project")
3030
public class ProjectRootController extends AbstractController {
3131

3232
private final ProjectControllerService projectControllerService;
@@ -41,7 +41,7 @@ public ProjectRootController(
4141
this.taskMoveService = taskMoveService;
4242
}
4343

44-
@RequestMapping(path = "/tasks", method = RequestMethod.GET)
44+
@RequestMapping(path="/root", method = RequestMethod.GET)
4545
public final String showRootProject(
4646
@PageableDefault(sort = "orderIdProject") Pageable pageable,
4747
@RequestParam(required = false) String message,
@@ -65,7 +65,7 @@ public final String showRootProject(
6565
return "project/root/show";
6666
}
6767

68-
@RequestMapping(path = "/add/project", method = RequestMethod.GET)
68+
@RequestMapping(path = "/root/add/project", method = RequestMethod.GET)
6969
public final String addNewTopLevelProjectForm(
7070
@ModelAttribute("userSession") UserSessionBean userSession,
7171
Locale locale, Model model
@@ -76,7 +76,7 @@ public final String addNewTopLevelProjectForm(
7676
return "project/root/add/project";
7777
}
7878

79-
@RequestMapping(path = "/add/project", method = RequestMethod.POST)
79+
@RequestMapping(path = "/root/add/project", method = RequestMethod.POST)
8080
public final String addNewTopLevelProjectSave(
8181
@Valid Project project,
8282
@ModelAttribute("userSession") UserSessionBean userSession,
@@ -96,7 +96,7 @@ public final String addNewTopLevelProjectSave(
9696
);
9797
}
9898

99-
@RequestMapping(path = "/add/task", method = RequestMethod.GET)
99+
@RequestMapping(path = "/root/add/task", method = RequestMethod.GET)
100100
public final String addNewTaskToRootProjectGet(
101101
@ModelAttribute("userSession") UserSessionBean userSession,
102102
Locale locale, Model model
@@ -130,7 +130,7 @@ public final String addNewTaskToRootProjectGet(
130130
return "project/root/add/task";
131131
}
132132

133-
@RequestMapping(path = "/add/task", method = RequestMethod.POST)
133+
@RequestMapping(path = "/root/add/task", method = RequestMethod.POST)
134134
public final String addNewTaskToRootProjectPost(
135135
@ModelAttribute("userSession") UserSessionBean userSession,
136136
@Valid Task task,

0 commit comments

Comments
 (0)