source: src/main/java/com/example/baza/web/HomeController.java

Last change on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 357 bytes
Line 
1package com.example.baza.web;
2
3import org.springframework.stereotype.Controller;
4import org.springframework.web.bind.annotation.GetMapping;
5import org.springframework.web.bind.annotation.RequestMapping;
6
7@Controller
8@RequestMapping({"/","/home"})
9public class HomeController {
10 @GetMapping
11 public String getHomePage(){
12 return "home";
13 }
14}
Note: See TracBrowser for help on using the repository browser.