package com.example.demo;

import java.util.List;

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

@RestController
public class HistoriaKalkulatoraJSON {
	@Autowired
	private LogikaKalkulatora logika;
	
	@GetMapping("/historia.json")
	public List<String> pokazHistorie() {
		return logika.getHistoriaDzialan();
	}

}
