Skip to content

Commit

Permalink
Merge pull request #34 from educ-ai-org/fix/headerToUri
Browse files Browse the repository at this point in the history
Change header id to uri
  • Loading branch information
juliaRufino committed May 16, 2024
2 parents 09682d3 + 69b5ce8 commit 0830807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/api/educai/controllers/PostController.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public class PostController {
@Secured("ROLE_TEACHER")
@PostMapping
@Operation(summary = "Cria um post")
public ResponseEntity<Post> createPost(@RequestBody @Valid PostDTO post, @RequestHeader String classroomId){
@GetMapping("/{classroomId}")
public ResponseEntity<Post> createPost(@RequestBody @Valid PostDTO post, @PathVariable String classroomId){
return ResponseEntity.status(201).body(postService.createPost(post,classroomId));
}

Expand Down

0 comments on commit 0830807

Please sign in to comment.