-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*Add localhost documentation *Add testing page *Add ResponseBody
- Loading branch information
Showing
20 changed files
with
766 additions
and
38 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
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
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
32 changes: 32 additions & 0 deletions
32
src/main/java/me/widua/databaseauthorization/controler/WebsiteControler.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package me.widua.databaseauthorization.controler; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.CrossOrigin; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@Controller | ||
@CrossOrigin | ||
// Jest to kontroler który zarządza stroną informacyjną o projekcie. | ||
public class WebsiteControler { | ||
|
||
|
||
@GetMapping("/") | ||
public String getHomePage(){ | ||
return "home"; | ||
} | ||
|
||
@GetMapping("/documentation") | ||
public String getDocumentation(){ | ||
return "documentation"; | ||
} | ||
|
||
@GetMapping("/about") | ||
public String getAbout(){ | ||
return "about"; | ||
} | ||
|
||
@GetMapping("/test") | ||
public String getTest(){ | ||
return "test"; | ||
} | ||
} |
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
44 changes: 44 additions & 0 deletions
44
src/main/java/me/widua/databaseauthorization/model/ResponseBody.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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package me.widua.databaseauthorization.model; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
public class ResponseBody { | ||
private HttpStatus stauts ; | ||
private String message ; | ||
private Object optional ; | ||
|
||
public ResponseBody(HttpStatus stauts, String message, Object optional) { | ||
this.stauts = stauts; | ||
this.message = message; | ||
this.optional = optional; | ||
} | ||
|
||
public ResponseBody(HttpStatus stauts, String message) { | ||
this.stauts = stauts; | ||
this.message = message; | ||
} | ||
|
||
public HttpStatus getStauts() { | ||
return stauts; | ||
} | ||
|
||
public void setStauts(HttpStatus stauts) { | ||
this.stauts = stauts; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public Object getOptional() { | ||
return optional; | ||
} | ||
|
||
public void setOptional(Object optional) { | ||
this.optional = optional; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/java/me/widua/databaseauthorization/model/UserRegisterModel.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
Oops, something went wrong.