package com.example.demo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HistoriaJSON {
	@Autowired
	private LogikaKalkulatora logikaKalkulatora;
	
	@GetMapping("/historia.json")
	@ResponseBody
	public List<String> dajHistorie() {
		return logikaKalkulatora.getHistoriaDzialan();
	}

}
