package net.sevecek.kostka;

import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;

@Controller
public class HlavniController {

    @RequestMapping("/hod-kostkou.html")
    @ResponseBody
    public String showAllCustomers() {
        Integer hozeno = (int)(Math.random() * 6) + 1;
        return "<html><body><h2>Hozeno na kostce " + hozeno + "</h2></body></html>";
    }

}
