Last change
on this file since 6032d44 was 6032d44, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
login method
|
-
Property mode
set to
100644
|
File size:
662 bytes
|
Line | |
---|
1 | package com.example.moviezone.web;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.moviezone.service.FilmService;
|
---|
5 | import org.springframework.stereotype.Controller;
|
---|
6 | import org.springframework.ui.Model;
|
---|
7 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
8 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
9 |
|
---|
10 | @Controller
|
---|
11 | @RequestMapping("/")
|
---|
12 | public class HomeController {
|
---|
13 |
|
---|
14 | private final FilmService filmService;
|
---|
15 |
|
---|
16 | public HomeController(FilmService filmService) {
|
---|
17 | this.filmService = filmService;
|
---|
18 | }
|
---|
19 |
|
---|
20 | @GetMapping
|
---|
21 | public String getHomePage(Model model) {
|
---|
22 | model.addAttribute("bodyContent", "home");
|
---|
23 | return "master-template";
|
---|
24 | }
|
---|
25 |
|
---|
26 |
|
---|
27 |
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.