Skip to content

Commit

Permalink
fix: 정적파일 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Choi-JJunho committed Sep 12, 2023
1 parent 0b07af2 commit 704944a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String adminPage(@AdminAuth Admin admin, Model model) {
}

model.addAttribute("admin", admin);
return "/admin/index";
return "admin/index";
}

@GetMapping("/dict")
Expand All @@ -55,7 +55,7 @@ public String dictionaryPlants(@PageableDefault Pageable pageable, @AdminAuth Ad
model.addAttribute("admin", admin);
model.addAttribute("page", dictionaryPlants);
model.addAttribute("plants", dictionaryPlants.getContent());
return "/admin/dict/list";
return "admin/dict/list";
}

@GetMapping("/dict/{id}")
Expand All @@ -69,7 +69,7 @@ public String dictionaryPlant(@PathVariable Long id, @AdminAuth Admin admin, Mod

model.addAttribute("admin", admin);
model.addAttribute("plant", dictionaryPlant);
return "/admin/dict/plant";
return "admin/dict/plant";
}

@GetMapping("/dict/create")
Expand All @@ -79,7 +79,7 @@ public String dictionaryPlantCreateForm(@AdminAuth Admin admin, Model model) {
}

model.addAttribute("admin", admin);
return "/admin/dict/create";
return "admin/dict/create";
}

@GetMapping("/dict/{id}/update")
Expand All @@ -93,7 +93,7 @@ public String dictionaryPlantUpdateForm(@PathVariable Long id, @AdminAuth Admin

model.addAttribute("admin", admin);
model.addAttribute("plant", dictionaryPlant);
return "/admin/dict/update";
return "admin/dict/update";
}

@GetMapping("/dict/requests")
Expand All @@ -103,12 +103,12 @@ public String dictionaryPlantRequests(@AdminAuth Admin admin, Model model) {
}

model.addAttribute("admin", admin);
return "/admin/dict/requests";
return "admin/dict/requests";
}

@GetMapping("/login")
public String loginPage(Model model) {
return "/admin/login";
return "admin/login";
}

@PostMapping("/login")
Expand Down

0 comments on commit 704944a

Please sign in to comment.