From 7544b3ddc0f99799fdd763c3164ae5ca77bbb1fc Mon Sep 17 00:00:00 2001 From: neviyn Date: Thu, 29 Apr 2021 21:17:41 +0100 Subject: [PATCH] Fixed controller mappings --- src/main/kotlin/uk/co/neviyn/booru/Controller.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/uk/co/neviyn/booru/Controller.kt b/src/main/kotlin/uk/co/neviyn/booru/Controller.kt index aff234b..5860171 100644 --- a/src/main/kotlin/uk/co/neviyn/booru/Controller.kt +++ b/src/main/kotlin/uk/co/neviyn/booru/Controller.kt @@ -8,6 +8,7 @@ import org.springframework.stereotype.Controller import org.springframework.ui.Model import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.PostMapping +import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestParam import org.springframework.web.multipart.MultipartFile import java.io.File @@ -21,7 +22,8 @@ class BaseController { } -@Controller("/gallery") +@Controller +@RequestMapping("/gallery") class ImageController @Autowired constructor( val imageRepository: ImageRepository, @@ -48,7 +50,8 @@ class ImageController } -@Controller("/upload") +@Controller +@RequestMapping("/upload") class UploadController @Autowired constructor( val imageRepository: ImageRepository,