Skip to content

Commit 9870176

Browse files
committed
✨ feat: Organization 조회 기능 구현
1 parent b54cc23 commit 9870176

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/sponus/sponusbe/domain/organization/controller/OrganizationController.java

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.sponus.sponusbe.domain.organization.controller;
22

3+
import com.sponus.sponusbe.domain.organization.dto.OrganizationDetailGetResponse;
34
import org.springframework.web.bind.annotation.GetMapping;
45
import org.springframework.web.bind.annotation.PostMapping;
56
import org.springframework.web.bind.annotation.RequestBody;
@@ -34,4 +35,9 @@ public ApiResponse<Long> test(@AuthOrganization Organization organization) {
3435
Long id = organization.getId();
3536
return ApiResponse.onSuccess(id);
3637
}
38+
39+
@GetMapping("/me")
40+
public ApiResponse<OrganizationDetailGetResponse> getMyOrganization(@AuthOrganization Organization organization){
41+
return ApiResponse.onSuccess(OrganizationDetailGetResponse.from(organization));
42+
}
3743
}

0 commit comments

Comments
 (0)