package es.uv.saic.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import es.uv.saic.domain.Noticia;
import es.uv.saic.service.NoticiaService;
import org.springframework.web.bind.annotation.GetMapping;

@RestController
public class NoticiaController {
    @Autowired
    private NoticiaService ns;
    
    @GetMapping("/noticia/findVisibles")
    public List<Noticia> findVisibles() {
        return ns.findVisibles();
    }
    
}
