Class PageController

java.lang.Object
springboot.bg.harisauto.web.controller.PageController

@Controller public class PageController extends Object
PagesController.java - Controller for handling static pages web requests.
Author:
Kristian Popov
  • Constructor Details

    • PageController

      public PageController(NewsService newsService)
      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.