Ajout article v2

This commit is contained in:
jleroy
2024-04-24 10:32:03 +02:00
parent 389b5d6b23
commit 79fc4ce674
2 changed files with 7 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ public class ArticleController {
}
@GetMapping("/new")
public String test(@PathVariable(name = "slug")int id, Model model) {
public String test(Model model) {
model.addAttribute("categories", categorieService.findAllCategories());
return "newArticle";
}