feat[first]: initial commit: add user authentication and article management features

This commit is contained in:
Aleks 2025-04-01 12:23:06 +02:00
parent 14a3747463
commit cb9f77b5d2
2 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override @Override
public void addCorsMappings(CorsRegistry registry) { public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**") registry.addMapping("/api/**")
.allowedOrigins("http://dev.d.ctf.arrobe.fr", "http://localhost:5173") .allowedOrigins("http://dev.d.ctf.arrobe.fr")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*") .allowedHeaders("*")
.allowCredentials(true); .allowCredentials(true);

View File

@ -23,6 +23,10 @@ public class Article {
private Date date; private Date date;
private String ipAdress; private String ipAdress;
private String image;
@Lob
@Column(columnDefinition = "LONGBLOB")
private byte[] image;
private String content; private String content;
} }