diff --git a/src/main/kotlin/com/becausesec/chuckjokes/services/JokesService.kt b/src/main/kotlin/com/becausesec/chuckjokes/services/JokesService.kt index 152cee8..fbd8380 100644 --- a/src/main/kotlin/com/becausesec/chuckjokes/services/JokesService.kt +++ b/src/main/kotlin/com/becausesec/chuckjokes/services/JokesService.kt @@ -1,6 +1,7 @@ package com.becausesec.chuckjokes.services import guru.springframework.norris.chuck.ChuckNorrisQuotes +import org.springframework.stereotype.Component import org.springframework.stereotype.Service @Service @@ -8,6 +9,7 @@ interface JokeService { val joke:String } +@Component class JokeServiceImpl:JokeService { val chuckNorrisQuotes : ChuckNorrisQuotes = ChuckNorrisQuotes() diff --git a/src/main/resources/templates/chucknorris.html b/src/main/resources/templates/chucknorris.html new file mode 100644 index 0000000..3c41b12 --- /dev/null +++ b/src/main/resources/templates/chucknorris.html @@ -0,0 +1,14 @@ + + +
+ ++ Insert joke! +
+ + + \ No newline at end of file