2828import org .slf4j .Logger ;
2929import org .slf4j .LoggerFactory ;
3030import org .springframework .beans .factory .annotation .Autowired ;
31- import org . springframework . web . bind . annotation . CrossOrigin ;
31+
3232import org .springframework .web .bind .annotation .RequestBody ;
3333import org .springframework .web .bind .annotation .RequestMapping ;
3434import org .springframework .web .bind .annotation .RequestMethod ;
@@ -49,7 +49,6 @@ public class FacilitytypeController {
4949
5050 private final Logger logger = LoggerFactory .getLogger (this .getClass ().getName ());
5151
52- @ CrossOrigin ()
5352 @ ApiOperation (value = "Get facility" , consumes = "application/json" , produces = "application/json" )
5453 @ RequestMapping (value = "/getFacility" , headers = "Authorization" , method = { RequestMethod .POST }, produces = {
5554 "application/json" })
@@ -74,7 +73,6 @@ public String getFacility(@RequestBody String getFacility) {
7473 return response .toString ();
7574 }
7675
77- @ CrossOrigin ()
7876 @ ApiOperation (value = "Add facility" , consumes = "application/json" , produces = "application/json" )
7977 @ RequestMapping (value = "/addFacility" , headers = "Authorization" , method = { RequestMethod .POST }, produces = {
8078 "application/json" })
@@ -99,7 +97,6 @@ public String addFacility(@RequestBody String addFacility) {
9997 return response .toString ();
10098 }
10199
102- @ CrossOrigin ()
103100 @ ApiOperation (value = "Edit facility" , consumes = "application/json" , produces = "application/json" )
104101 @ RequestMapping (value = "/editFacility" , headers = "Authorization" , method = { RequestMethod .POST }, produces = {
105102 "application/json" })
@@ -131,7 +128,6 @@ public String editFacility(@RequestBody String editFacility) {
131128 return response .toString ();
132129 }
133130
134- @ CrossOrigin ()
135131 @ ApiOperation (value = "Delete facility" , consumes = "application/json" , produces = "application/json" )
136132 @ RequestMapping (value = "/deleteFacility" , headers = "Authorization" , method = { RequestMethod .POST }, produces = {
137133 "application/json" })
0 commit comments