Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
abbenhoumi
IntegrationProjet
Commits
dc88de0e
Commit
dc88de0e
authored
Apr 07, 2020
by
Bane
Browse files
enable cors
parent
4fe641dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/isima/f2/controllers/PoubelleController.java
View file @
dc88de0e
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment