Commit 18a833b6 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixed DrugController URLs

parent 146eca6c
......@@ -14,7 +14,7 @@ import lcsb.mapviewer.api.BaseController;
import lcsb.mapviewer.api.QueryException;
@RestController
@RequestMapping(value = "/projects/{projectId}/drugs", produces = MediaType.APPLICATION_JSON_VALUE)
@RequestMapping(value = "/projects/{projectId}/", produces = MediaType.APPLICATION_JSON_VALUE)
public class DrugController extends BaseController {
private DrugRestImpl drugController;
......@@ -25,7 +25,7 @@ public class DrugController extends BaseController {
}
@PreAuthorize("hasAnyAuthority('IS_ADMIN', 'READ_PROJECT:' + #projectId)")
@GetMapping(value = ":search")
@GetMapping(value = "drugs:search")
public List<Map<String, Object>> getDrugsByQuery(
@PathVariable(value = "projectId") String projectId,
@RequestParam(value = "columns", defaultValue = "") String columns,
......@@ -44,7 +44,7 @@ public class DrugController extends BaseController {
}
@PreAuthorize("hasAnyAuthority('IS_ADMIN', 'READ_PROJECT:' + #projectId)")
@GetMapping(value = "/suggestedQueryList")
@GetMapping(value = "drugs/suggestedQueryList")
public List<String> getSuggestedQueryList(@PathVariable(value = "projectId") String projectId)
throws DrugSearchException {
return drugController.getSuggestedQueryList(projectId);
......
Supports Markdown
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