Class PageController
java.lang.Object
springboot.bg.harisauto.web.controller.PageController
PagesController.java - Controller for handling static pages web requests.
- Author:
- Kristian Popov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewShows the About Us page.org.springframework.web.servlet.ModelAndViewShows the Careers page.org.springframework.web.servlet.ModelAndViewShows the Locations page.org.springframework.web.servlet.ModelAndViewShows the News page.
-
Constructor Details
-
PageController
Constructor.
-
-
Method Details
-
showAboutUsPage
@GetMapping("/about") public org.springframework.web.servlet.ModelAndView showAboutUsPage()Shows the About Us page.- Returns:
- The About Us page.
-
showCareersPage
@GetMapping("/careers") public org.springframework.web.servlet.ModelAndView showCareersPage()Shows the Careers page.- Returns:
- The Careers page.
-
showLocationsPage
@GetMapping("/locations") public org.springframework.web.servlet.ModelAndView showLocationsPage()Shows the Locations page.- Returns:
- The Locations page.
-
showNewsPage
@GetMapping("/news") public org.springframework.web.servlet.ModelAndView showNewsPage()Shows the News page.- Returns:
- The News page.
-