Skip to content

Commit

Permalink
(fix) Fix no adapter error when saving a form resource
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsereko committed Sep 10, 2024
1 parent 4a54c44 commit 0aefe99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class FormResourceController1_9 extends MainResourceController {
@Autowired
private FormService formService;

@RequestMapping(value = "/rest/" + RestConstants.VERSION_1 + "/form/{uuid}/resource/{resourceUuid}/value", method = RequestMethod.POST, headers = { "Content-Type=multipart/form-data" })
@RequestMapping(method = RequestMethod.POST, headers = { "Content-Type=multipart/form-data" })
@ResponseBody
public Object createResourceValue(@PathVariable("uuid") String formUuid,
@PathVariable("resourceUuid") String resourceUuid, @RequestParam("value") MultipartFile file,
Expand All @@ -56,7 +56,7 @@ public Object createResourceValue(@PathVariable("uuid") String formUuid,
return new FormResourceResource1_9().asDefaultRep(resource);
}

@RequestMapping(value = "/rest/" + RestConstants.VERSION_1 + "/form/{uuid}/resource/{resourceUuid}/value", method = RequestMethod.GET)
@RequestMapping(method = RequestMethod.GET)
public void getResourceValue(@PathVariable("uuid") String formUuid, @PathVariable("resourceUuid") String resourceUuid,
HttpServletRequest request, HttpServletResponse response) throws Exception {
//Get the resource
Expand Down

0 comments on commit 0aefe99

Please sign in to comment.