Commit 525be01f by Patryk Czarnik

HistoriaKalkulatoraJSON

parent 3a4de782
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 HistoriaKalkulatoraJSON {
@Autowired
private LogikaKalkulatora logika;
@GetMapping("/historia")
@ResponseBody
public List<String> pokazHistorie() {
return logika.getHistoriaDzialan();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment