Skip to content

Commit

Permalink
Bugfix: GET Method for fetching notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
djuarezgf committed Jan 10, 2024
1 parent c638777 commit b574fb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/samply/app/ProjectManagerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ public ResponseEntity<String> saveAndExecuteQueryInBridgehead(
@StateConstraints(projectStates = {ProjectState.DEVELOP, ProjectState.PILOT, ProjectState.FINAL})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.TOKEN_MANAGER_MODULE)
@FrontendAction(action = ProjectManagerConst.FETCH_AUTHENTICATION_SCRIPT_ACTION)
@PostMapping(value = ProjectManagerConst.FETCH_AUTHENTICATION_SCRIPT)
@GetMapping(value = ProjectManagerConst.FETCH_AUTHENTICATION_SCRIPT)
public ResponseEntity<String> fetchTokenScript(
@ProjectCode @RequestParam(name = ProjectManagerConst.PROJECT_CODE) String projectCode,
@Bridgehead @RequestParam(name = ProjectManagerConst.BRIDGEHEAD) String bridgehead
Expand All @@ -804,7 +804,7 @@ public ResponseEntity<String> fetchTokenScript(
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.NOTIFICATIONS_MODULE)
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_DASHBOARD_SITE, module = ProjectManagerConst.NOTIFICATIONS_MODULE)
@FrontendAction(action = ProjectManagerConst.FETCH_NOTIFICATIONS_ACTION)
@PostMapping(value = ProjectManagerConst.FETCH_NOTIFICATIONS)
@GetMapping(value = ProjectManagerConst.FETCH_NOTIFICATIONS)
public ResponseEntity<String> fetchNotifications(
@ProjectCode @RequestParam(name = ProjectManagerConst.PROJECT_CODE) String projectCode,
// bridgehead required for identifying developer, pilot, final user or bridgehead admin in role constraints
Expand Down

0 comments on commit b574fb4

Please sign in to comment.