Skip to content
Snippets Groups Projects
Commit e9836e63 authored by Antoine Rey's avatar Antoine Rey
Browse files

Cross Origin support

parent 3aafb3f2
Branches
No related tags found
No related merge requests found
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.samples.petclinic.web;
import org.springframework.web.bind.annotation.CrossOrigin;
/**
* @author Antoine Rey
*/
@CrossOrigin
abstract class AbstractResourceController {
}
......@@ -40,7 +40,7 @@ import javax.validation.Valid;
* @author Michael Isvy
*/
@RestController
public class OwnerResource {
public class OwnerResource extends AbstractResourceController {
private final ClinicService clinicService;
......
......@@ -35,7 +35,7 @@ import java.util.Map;
* @author Arjen Poutsma
*/
@RestController
public class PetResource {
public class PetResource extends AbstractResourceController {
private final ClinicService clinicService;
......
......@@ -33,7 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
* @author Arjen Poutsma
*/
@RestController
public class VetResource {
public class VetResource extends AbstractResourceController {
private final ClinicService clinicService;
......
......@@ -35,7 +35,7 @@ import javax.validation.Valid;
* @author Michael Isvy
*/
@RestController
public class VisitResource {
public class VisitResource extends AbstractResourceController {
private final ClinicService clinicService;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment