Skip to content

Commit

Permalink
Update PostController.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
endermaru authored Feb 1, 2025
1 parent 8f2142d commit 6066f1e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ class PostController(
return ResponseEntity.status(HttpStatus.CREATED).body(position)
}

@GetMapping("/companies/me")
@GetMapping("/company/me")
fun getCompanyByCurator(
@Parameter(hidden = true) @AuthUser user: User,
): ResponseEntity<List<Company>> {
val companies = postService.getCompanyByCurator(user)
return ResponseEntity.ok(companies)
}

@GetMapping("/positions/me")
@GetMapping("/position/me")
fun getPostByCurator(
@Parameter(hidden = true) @AuthUser user: User,
): ResponseEntity<List<Post>> {
Expand Down

0 comments on commit 6066f1e

Please sign in to comment.