Sambo Chea
abb35e94c0
Some checks reported errors
continuous-integration/drone/push Build was killed
15 lines
429 B
Kotlin
15 lines
429 B
Kotlin
package com.cubetiqs.web.controller
|
|
|
|
import io.swagger.v3.oas.annotations.Hidden
|
|
import org.springframework.stereotype.Controller
|
|
import org.springframework.web.bind.annotation.GetMapping
|
|
import org.springframework.web.servlet.view.RedirectView
|
|
|
|
@Hidden
|
|
@Controller
|
|
class ApiDoc {
|
|
@GetMapping(value = [ "/api-doc", "/api-docs"])
|
|
fun redirect(): RedirectView {
|
|
return RedirectView("/swagger-ui/index.html")
|
|
}
|
|
} |