Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 329 Bytes
package com.example.blog
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
@RestController
class ArticleResource(val articleRepository: ArticleRepository) {
@GetMapping("article")
fun getArticles(): Iterable<Article> = articleRepository.findAll()
}
You can’t perform that action at this time.