John-sCC / jcc_backend

Eat up!
1 stars 0 forks source link

Table Generator Read and Delete - 4/18 #32

Closed aidenhuynh closed 6 months ago

aidenhuynh commented 6 months ago

Feature Update

The table generator on the frontend is now able to read a user's classes and delete them, which involved very little editing of the backend aside from adding allowed methods onto our MvcConfig.java file, because apparently the methods on SecurityConfig.java do nothing, as after testing removing "READ" from SecurityConfig.java, all requests with the "READ" method still worked.

@Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**")
        .allowedOrigins("https://john-scc.github.io", "http://localhost:4100", "http://127.0.0.1:4100")
        .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS");
    }