Merge branch 'master' into LeoMoulin/Backend/Leo
This commit is contained in:
		| @ -4,15 +4,15 @@ import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.CrossOrigin; | ||||
| import org.springframework.web.bind.annotation.RestController; | ||||
|  | ||||
| import ovh.herisson.Clyde.Ping; | ||||
| import ovh.herisson.Clyde.Responses.PingResponse; | ||||
|  | ||||
| @RestController | ||||
| @CrossOrigin(origins = "http://localhost:5173") | ||||
| public class PingController { | ||||
|  | ||||
| 	@GetMapping("/ping") | ||||
| 	public Ping ping(){ | ||||
| 		return new Ping(1, "pong"); | ||||
| 	public PingResponse ping(){ | ||||
| 		return new PingResponse(1, "pong"); | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
|  | ||||
| @ -34,16 +34,4 @@ public class JdbcConfig { | ||||
|  | ||||
| 		return source; | ||||
| 	} | ||||
|  | ||||
|  | ||||
| 	@Bean | ||||
| 	public WebMvcConfigurer corsConfigurer() { | ||||
| 		return new WebMvcConfigurer() { | ||||
| 			@Override | ||||
| 			public void addCorsMappings(CorsRegistry registry) { | ||||
| 				registry.addMapping("/greeting-javaconfig").allowedOrigins("*"); | ||||
| 			} | ||||
| 		}; | ||||
| 	} | ||||
|  | ||||
| } | ||||
|  | ||||
| @ -1,3 +0,0 @@ | ||||
| package ovh.herisson.Clyde; | ||||
|  | ||||
| public record Ping(int id, String txt){}; | ||||
| @ -0,0 +1,3 @@ | ||||
| package ovh.herisson.Clyde.Responses; | ||||
|  | ||||
| public record PingResponse(int id, String txt){}; | ||||
							
								
								
									
										192
									
								
								backend/src/main/resources/static/assets/index-BP8s9Pse.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										192
									
								
								backend/src/main/resources/static/assets/index-BP8s9Pse.js
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										12
									
								
								backend/src/main/resources/static/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								backend/src/main/resources/static/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| <!doctype html> | ||||
| <html> | ||||
|   <head> | ||||
|     <meta charset="UTF-8" /> | ||||
|     <title>Clyde's api</title> | ||||
|     <script type="module" crossorigin src="assets/index-BP8s9Pse.js"></script> | ||||
|     <link rel="stylesheet" crossorigin href="assets/index-rZb_qAw7.css"> | ||||
|   </head> | ||||
|   <body> | ||||
|     <div id="app"></div> | ||||
|   </body> | ||||
| </html> | ||||
							
								
								
									
										1897
									
								
								backend/src/main/resources/static/openapi.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1897
									
								
								backend/src/main/resources/static/openapi.yaml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user