feat[first]: initial commit: add user authentication and article management features
This commit is contained in:
parent
14a3747463
commit
cb9f77b5d2
@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
@Override
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
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")
|
||||
.allowedHeaders("*")
|
||||
.allowCredentials(true);
|
||||
|
@ -23,6 +23,10 @@ public class Article {
|
||||
private Date date;
|
||||
|
||||
private String ipAdress;
|
||||
private String image;
|
||||
|
||||
@Lob
|
||||
@Column(columnDefinition = "LONGBLOB")
|
||||
private byte[] image;
|
||||
|
||||
private String content;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user