Commit dc88de0e authored by Bane's avatar Bane

enable cors

parent 4fe641dc
...@@ -6,18 +6,13 @@ import java.util.Map; ...@@ -6,18 +6,13 @@ import java.util.Map;
import com.google.gson.Gson; import com.google.gson.Gson;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import isima.f2.model.Poubelle; import isima.f2.model.Poubelle;
import isima.f2.services.ImpPoubelle; import isima.f2.services.ImpPoubelle;
@RestController @RestController
@RequestMapping("poubelles") @RequestMapping("poubelles")
@CrossOrigin(origins = "http://localhost:4200")
public class PoubelleController { public class PoubelleController {
@Autowired @Autowired
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment