Changeset adf250d


Ignore:
Timestamp:
02/04/23 18:45:35 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
27adfc8
Parents:
2269653
Message:

Update HomeController.java

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/web/HomeController.java

    r2269653 radf250d  
    44import com.example.moviezone.service.FilmService;
    55import org.springframework.stereotype.Controller;
     6import org.springframework.ui.Model;
     7import org.springframework.web.bind.annotation.GetMapping;
    68import org.springframework.web.bind.annotation.RequestMapping;
    79
     
    1618    }
    1719
     20    @GetMapping
     21    public String getHomePage(Model model) {
     22        model.addAttribute("bodyContent", "home");
     23        return "master-template";
     24    }
     25
    1826
    1927}
Note: See TracChangeset for help on using the changeset viewer.