diff --git a/pom.xml b/pom.xml index 2dbadbb..e95246b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 2.1.1.RELEASE + 2.2.6.RELEASE com.becausesec @@ -16,7 +16,7 @@ 1.8 - 1.2.71 + 1.3.71 because @@ -61,30 +61,6 @@ ${project.basedir}/src/main/kotlin ${project.basedir}/src/test/kotlin - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.5.0.1254 - - - org.owasp - dependency-check-maven - 4.0.2 - - ALL - - - - - - com.spotify - dockerfile-maven-plugin - 1.4.9 - - ${docker.image.prefix}/${project.artifactId} - - - org.apache.maven.plugins diff --git a/src/main/kotlin/com/becausesec/chuckjokes/controllers/JokeController.kt b/src/main/kotlin/com/becausesec/chuckjokes/controllers/JokeController.kt index c17e5bd..f6ab7b2 100644 --- a/src/main/kotlin/com/becausesec/chuckjokes/controllers/JokeController.kt +++ b/src/main/kotlin/com/becausesec/chuckjokes/controllers/JokeController.kt @@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired import org.springframework.stereotype.Controller import org.springframework.ui.Model import org.springframework.web.bind.annotation.RequestMapping +import org.springframework.web.bind.annotation.RequestMethod @Controller class JokeController { @@ -12,7 +13,7 @@ class JokeController { @Autowired lateinit var jokeService: JokeService - @RequestMapping(value=["/", ""]) + @RequestMapping(value=["/", ""], method = [RequestMethod.GET]) fun showJoke(model : Model) : String { model.addAttribute("joke", jokeService.joke) return "chucknorris"