source: source/freeparkingspace/src/main/java/com/proekt/Controller/RegisterConfirmation.java@ 31d67c0

Last change on this file since 31d67c0 was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 22 months ago

proekt

  • Property mode set to 100644
File size: 844 bytes
Line 
1package com.proekt.Controller;
2
3import com.proekt.Repository.NajavaRepository;
4import org.springframework.stereotype.Controller;
5import org.springframework.ui.Model;
6import org.springframework.web.bind.annotation.GetMapping;
7import org.springframework.web.bind.annotation.RequestMapping;
8import org.springframework.web.bind.annotation.RequestParam;
9
10@Controller
11@RequestMapping("/register-info")
12public class RegisterConfirmation {
13
14 @GetMapping
15 public String getRegisterPage(@RequestParam(required = false) String error, Model model) {
16 if(error != null && !error.isEmpty()) {
17 model.addAttribute("hasError", true);
18 model.addAttribute("error", error);
19 }
20 model.addAttribute("bodyContent","registerConfirmation");
21 return "master-template";
22 }
23}
Note: See TracBrowser for help on using the repository browser.