package com.example.demo.waluty;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class WalutyController {
    
    @GetMapping("/waluty")
    public String wyswietlWaluty(String data, Model model) {
        TabelaWalut tabela = pobierzTabele(data);
        model.addAttribute("tabela", tabela);
        return "waluty.html";
    }

    private TabelaWalut pobierzTabele(String data) {
        // TODO Auto-generated method stub
        return null;
    }

}
