diff --git a/src/main/java/com/LabWork/app/AppApplication.java b/src/main/java/com/LabWork/app/AppApplication.java index 1395cf2..de82a42 100644 --- a/src/main/java/com/LabWork/app/AppApplication.java +++ b/src/main/java/com/LabWork/app/AppApplication.java @@ -3,7 +3,6 @@ package com.LabWork.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; - @SpringBootApplication public class AppApplication { public static void main(String[] args) { diff --git a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java index 7dc9552..7b70240 100644 --- a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java +++ b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaController.java @@ -38,19 +38,6 @@ public class MangaController { .map(x -> new ReaderMangaDto(x)) .toList(); } -/* - @PostMapping - public MangaReaderDto createManga(@RequestParam("creatorId") Long creatorId, - @RequestParam("chapterCount") Integer chapterCount, - @RequestParam("mangaName") String mangaName) { - return new MangaReaderDto(mangaService.addManga(creatorId, chapterCount, mangaName), mangaService.getReader(creatorId)); - }*/ - -/* @PutMapping("/{id}") - public MangaReaderDto updateManga(@PathVariable Long id, - @RequestParam("chapterCount") Integer chapterCount) { - return new MangaReaderDto(mangaService.updateManga(id, chapterCount), mangaService.getReader(id)); - }*/ @DeleteMapping("/{id}") public MangaDto deleteManga(@PathVariable Long id) { diff --git a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java index f72ca4f..858810a 100644 --- a/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java +++ b/src/main/java/com/LabWork/app/MangaStore/controller/Manga/MangaMvcController.java @@ -35,6 +35,4 @@ public class MangaMvcController { .toList()); return "mangaPage"; } - - } diff --git a/src/main/java/com/LabWork/app/WebConfiguration.java b/src/main/java/com/LabWork/app/WebConfiguration.java index 79b2cd6..c2729aa 100644 --- a/src/main/java/com/LabWork/app/WebConfiguration.java +++ b/src/main/java/com/LabWork/app/WebConfiguration.java @@ -1,13 +1,8 @@ package com.LabWork.app; -import org.springframework.boot.web.server.ErrorPage; -import org.springframework.boot.web.server.WebServerFactoryCustomizer; -import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory; -import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpStatus; import org.springframework.web.servlet.config.annotation.*; - @Configuration public class WebConfiguration implements WebMvcConfigurer { public static final String REST_API = "/api"; diff --git a/src/main/resources/templates/creatorAction-edit.html b/src/main/resources/templates/creatorAction-edit.html index ab3be3e..884d620 100644 --- a/src/main/resources/templates/creatorAction-edit.html +++ b/src/main/resources/templates/creatorAction-edit.html @@ -21,10 +21,6 @@ -
-
@@ -68,28 +67,4 @@ - \ No newline at end of file diff --git a/src/main/resources/templates/readerAction.html b/src/main/resources/templates/readerAction.html index a0d6b92..8ab63c6 100644 --- a/src/main/resources/templates/readerAction.html +++ b/src/main/resources/templates/readerAction.html @@ -27,9 +27,6 @@ - - -
@@ -44,8 +41,6 @@
- -
@@ -65,8 +60,6 @@ th:attr="onclick=|confirm('Удалить запись?') && document.getElementById('remove-${manga.id}').click()|"> Удалить -
- \ No newline at end of file