source: src/main/java/finki/it/terapijamkbackend/spring/controllers/WebController.java

Last change on this file was 43c9090, checked in by macagaso <gasoskamarija@…>, 5 weeks ago

Updated version

  • Property mode set to 100644
File size: 1.4 KB
Line 
1package finki.it.terapijamkbackend.spring.controllers;
2
3import finki.it.terapijamkbackend.spring.services.UserService;
4import org.springframework.beans.factory.annotation.Autowired;
5import org.springframework.stereotype.Controller;
6import org.springframework.web.bind.annotation.GetMapping;
7
8
9@Controller
10public class WebController {
11 @GetMapping(path="/")
12 public String index() {
13 return "html/index";
14 }
15
16 @GetMapping(path="/editUser.html")
17 public String user() {
18 return "html/editUser";
19 }
20
21 @GetMapping(path="/calendar.html")
22 public String calendar() {
23 return "html/calendar";
24 }
25
26 @GetMapping(path="/terms.html")
27 public String terms() {
28 return "html/terms";
29 }
30
31 @GetMapping(path="/admin.html")
32 public String admin() {
33 return "html/admin";
34 }
35
36 @GetMapping(path="/admin-terms.html")
37 public String adminTerms() {
38 return "html/admin-terms";
39 }
40
41 @GetMapping(path="/users-view.html")
42 public String usersView() {
43 return "html/users-view";
44 }
45
46 @GetMapping(path="/adminNews.html")
47 public String adminNews() {
48 return "html/adminNews";
49 }
50
51 @GetMapping(path="/adminCoupons.html")
52 public String adminCoupons() {
53 return "html/adminCoupons";
54 }
55
56 @GetMapping(path="/userInfo.html")
57 public String userInfo() {
58 return "html/userInfo";
59 }
60}
Note: See TracBrowser for help on using the repository browser.