refactor: update GetAll method to return NewsResponse and rename clicked to views
This commit is contained in:
@@ -15,7 +15,7 @@ func GetAll(
|
||||
) {
|
||||
router.Get("/news", func(w http.ResponseWriter, r *http.Request) {
|
||||
var (
|
||||
news []newsdomain.News
|
||||
news []newsdomain.NewsResponse
|
||||
err error
|
||||
)
|
||||
ctx := r.Context()
|
||||
|
||||
Reference in New Issue
Block a user