-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arreglados los errores, aplicación funcionando
- Loading branch information
Showing
8 changed files
with
259 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
practica/src/main/java/com/practica/demo/data/bracket/BracketController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
package com.practica.demo.data.bracket; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
import com.practica.demo.data.user.UserComponent; | ||
|
||
|
||
@EnableAutoConfiguration | ||
@Controller | ||
public class BracketController { | ||
|
||
@Autowired | ||
private UserComponent userComponent; | ||
|
||
@RequestMapping("/bracketCreation") | ||
public String goBracketCreation(Model model) { | ||
return "bracketCreation"; | ||
} | ||
|
||
@RequestMapping("/bracket") | ||
public String goBrackets(Model model) { | ||
model.addAttribute("noloaded", !userComponent.isLoggedUser()); | ||
model.addAttribute("user", userComponent.getLoggedUser()); | ||
return "diamond"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.