Commit 9870176 1 parent b54cc23 commit 9870176 Copy full SHA for 9870176
File tree 1 file changed +6
-0
lines changed
src/main/java/com/sponus/sponusbe/domain/organization/controller
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .sponus .sponusbe .domain .organization .controller ;
2
2
3
+ import com .sponus .sponusbe .domain .organization .dto .OrganizationDetailGetResponse ;
3
4
import org .springframework .web .bind .annotation .GetMapping ;
4
5
import org .springframework .web .bind .annotation .PostMapping ;
5
6
import org .springframework .web .bind .annotation .RequestBody ;
@@ -34,4 +35,9 @@ public ApiResponse<Long> test(@AuthOrganization Organization organization) {
34
35
Long id = organization .getId ();
35
36
return ApiResponse .onSuccess (id );
36
37
}
38
+
39
+ @ GetMapping ("/me" )
40
+ public ApiResponse <OrganizationDetailGetResponse > getMyOrganization (@ AuthOrganization Organization organization ){
41
+ return ApiResponse .onSuccess (OrganizationDetailGetResponse .from (organization ));
42
+ }
37
43
}
You can’t perform that action at this time.
0 commit comments