Commit dc88de0e authored by Bane's avatar Bane

enable cors

parent 4fe641dc
......@@ -6,18 +6,13 @@ import java.util.Map;
import com.google.gson.Gson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
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 org.springframework.web.bind.annotation.*;
import isima.f2.model.Poubelle;
import isima.f2.services.ImpPoubelle;
@RestController
@RequestMapping("poubelles")
@CrossOrigin(origins = "http://localhost:4200")
public class PoubelleController {
@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