package com.mustafaiev.tair.cts.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.mustafaiev.tair.constant.ViewNames;
@Controller
public class BasketController {
@RequestMapping(value = "/baskets", method = RequestMethod.GET)
public ModelAndView goToBasketsPage() {
final ModelAndView view = new ModelAndView(ViewNames.BASKETS);
view.addObject("world", "This is a greate world");
return view;
}
}