Skip to content

Commit c9ef932

Browse files
committed
Frontend included in the backend server done
1 parent e214152 commit c9ef932

File tree

102 files changed

+382
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+382
-10
lines changed
116 KB
Binary file not shown.
245 KB
Binary file not shown.
273 KB
Binary file not shown.
426 KB
Binary file not shown.
163 KB
Binary file not shown.
518 KB
Binary file not shown.
178 KB
Binary file not shown.

backend/gamelink/src/main/java/urjc/gamelink/Configuration/Security/WebSecurityConfig.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
import org.springframework.beans.factory.annotation.Autowired;
77
import org.springframework.context.annotation.Bean;
88
import org.springframework.context.annotation.Configuration;
9-
import org.springframework.security.config.Customizer;
109
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
1110
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
1211
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
13-
import org.springframework.security.config.annotation.web.configurers.ExceptionHandlingConfigurer;
1412
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
1513
import org.springframework.security.crypto.password.PasswordEncoder;
1614

@@ -21,7 +19,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
2119

2220
@Autowired
2321
RepositoryUserDetailsService userDetailsService;
24-
private Customizer<ExceptionHandlingConfigurer<HttpSecurity>> GlobalControllerExceptionHandler;
2522

2623

2724
@Bean

backend/gamelink/src/main/java/urjc/gamelink/Controllers/GamelinkWebController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void addAttributes(Model model, HttpServletRequest request) {
6363
}
6464
}
6565

66-
@GetMapping("/")
66+
@GetMapping("/home")
6767
public String home(Model model, HttpSession session) {
6868
Page<News> news = ns.findAll(PageRequest.of(0, 3));
6969

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package urjc.gamelink.Controllers;
22

3+
import org.springframework.stereotype.Controller;
34
import org.springframework.web.bind.annotation.GetMapping;
45

6+
@Controller
57
public class SPAController {
6-
7-
@GetMapping("/**/{path:[^\\.]*}")
8+
@GetMapping({"/new/*/{path:[^\\.]*}", "/{path:new[^\\.]*}"})
89
public String redirect() {
9-
return "forward:/";
10+
return "forward:/new/index.html";
1011
}
11-
1212
}

0 commit comments

Comments
 (0)