File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ class IndividualService {
1212 . then ( subjects => map ( subjects , subject => mapIndividual ( subject ) ) ) ;
1313 }
1414
15+ getSubjectByUUID ( uuid ) {
16+ return api . getSubjectByUUID ( uuid ) ;
17+ }
18+
1519}
1620
1721export const individualService = new IndividualService ( ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ export default {
1818 axios
1919 . get ( BASE_URL + `/subject/search?addressLevelUUID=${ addressLevelUUID } &subjectTypeName=${ subjectTypeName } ` )
2020 . then ( response => get ( response , 'data' ) ) ,
21+ getSubjectByUUID : ( uuid ) =>
22+ axios
23+ . get ( BASE_URL + `/web/individual/${ uuid } ` )
24+ . then ( response => get ( response , 'data' ) ) ,
2125 getCognitoDetails : ( ) => axios . get ( `${ BASE_URL } /cognito-details` , {
2226 headers : {
2327 "AUTH-TOKEN" : "" ,
You can’t perform that action at this time.
0 commit comments