Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaar, Bjørn-Andre committed Jan 15, 2024
1 parent d8ce91f commit 129be76
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
@RestController
// NOTE: CrossOrigin config moved to KlassSecurityConfiguration
// due to conditional behavior where some requests didn't get CORS headers and cause cache problems
@RequestMapping(value = { RestConstants.API_VERSION_V1,"/api/klass"+RestConstants.API_VERSION_V1, "/rest/v1" })
@RequestMapping(value = {"/api/klass"+RestConstants.API_VERSION_V1, RestConstants.API_VERSION_V1, "/rest/v1" })
public class ClassificationController {
private static final Logger log = LoggerFactory.getLogger(ClassificationController.class);
private final ClassificationService classificationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public class MonitorController {
private SearchService searchService;

@RequestMapping(value = {
"/api/klass" + MonitorController.PATH,
"/api/klass" + MonitorController.PATH + "/",
MonitorController.PATH,
MonitorController.PATH + "/",
"/api/klass" + MonitorController.PATH,
"/api/klass" + MonitorController.PATH + "/"
}, method = RequestMethod.GET)
public String render(HttpServletRequest request, ModelMap model) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public class PingController {

@ResponseBody
@RequestMapping(value = {
PingController.PATH,
PingController.PATH + "/",
"/api/klass" + PingController.PATH,
"/api/klass" + PingController.PATH + "/"
"/api/klass" + PingController.PATH + "/",
PingController.PATH,
PingController.PATH + "/"
}, method = RequestMethod.GET, produces = "application/xml")
public String ping() {
return "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import org.springframework.hateoas.Links;
import org.springframework.hateoas.PagedModel;
import org.springframework.hateoas.RepresentationModel;
import org.springframework.hateoas.UriTemplate;
import org.springframework.hateoas.server.mvc.WebMvcLinkBuilder;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
Expand Down

0 comments on commit 129be76

Please sign in to comment.