Express and mongodb

I want to make relationship between my table but when i insert a new Personnage i have an error. I don’t understand why i have this error just with “ethnie”. Thank you for your help This is my tables, const royaume = new mongoose.Schema({ _id : String, nom_royaume: String, image_royaume: String, description_royaume: String }) const…

Details

Spring Securiy OAuth2 Resource Server: Access by HTTP Method

I have a Spring Boot application which uses spring-security-oauth2-autoconfigure to run a a OAuth2 resource server: @Configuration @EnableResourceServer public class OAuth2Config extends ResourceServerConfigurerAdapter { @Value(“${security.oauth2.resource.id}”) private String resourceId; @Override public void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .mvcMatchers(“/api/**”).authenticated() .anyRequest().permitAll(); } @Override public void configure(ResourceServerSecurityConfigurer resources) throws Exception { resources.resourceId(resourceId); } } Everything works as intended.…

Details

NodeJS (EJS) adding stylesheet – not found

I try to add a CSS file in my node js project based on the EJS Template Engine, it does not work, the file cannot be found. GET http://142.93.166.197/css/bulma.css net::ERR_ABORTED 404 (Not Found) my project folder structure ./index.js ./views /partials /header.ejs ./public /css /bulma.css I have included app.use (express static) as follows app.use(express.static(__dirname + ‘/public’));…

Details