package com.movie.api.controller;

import com.movie.api.model.entity.Film;
import com.movie.api.model.entity.Result;
import com.movie.api.service.Resultservice;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ResultController {

    @Autowired
    private Resultservice resultservice;
    @GetMapping("/api/list")
    public List<Result> list() {
        return resultservice.findAll();
    }
}
