Fixed controller mappings
This commit is contained in:
parent
4a46b8b979
commit
7544b3ddc0
@ -8,6 +8,7 @@ import org.springframework.stereotype.Controller
|
|||||||
import org.springframework.ui.Model
|
import org.springframework.ui.Model
|
||||||
import org.springframework.web.bind.annotation.GetMapping
|
import org.springframework.web.bind.annotation.GetMapping
|
||||||
import org.springframework.web.bind.annotation.PostMapping
|
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.bind.annotation.RequestParam
|
||||||
import org.springframework.web.multipart.MultipartFile
|
import org.springframework.web.multipart.MultipartFile
|
||||||
import java.io.File
|
import java.io.File
|
||||||
@ -21,7 +22,8 @@ class BaseController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Controller("/gallery")
|
@Controller
|
||||||
|
@RequestMapping("/gallery")
|
||||||
class ImageController
|
class ImageController
|
||||||
@Autowired constructor(
|
@Autowired constructor(
|
||||||
val imageRepository: ImageRepository,
|
val imageRepository: ImageRepository,
|
||||||
@ -48,7 +50,8 @@ class ImageController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Controller("/upload")
|
@Controller
|
||||||
|
@RequestMapping("/upload")
|
||||||
class UploadController
|
class UploadController
|
||||||
@Autowired constructor(
|
@Autowired constructor(
|
||||||
val imageRepository: ImageRepository,
|
val imageRepository: ImageRepository,
|
||||||
|
Loading…
Reference in New Issue
Block a user