source: source/MovieZilla-master/src/main/java/com/example/demo/controller/HomeController.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 606 bytes
Line 
1package com.example.demo.controller;
2
3import com.example.demo.model.Movie;
4import org.springframework.stereotype.Controller;
5import org.springframework.ui.Model;
6import org.springframework.web.bind.annotation.GetMapping;
7import org.springframework.web.bind.annotation.RequestMapping;
8import org.springframework.web.bind.annotation.RequestParam;
9
10import java.util.List;
11
12@Controller
13@RequestMapping(value={"/", "/home"})
14public class HomeController {
15
16 @GetMapping
17 public String getViewHome(Model model) {
18
19 model.addAttribute("bodyContent","home");
20 return "master-template";
21 }
22
23}
Note: See TracBrowser for help on using the repository browser.