Skip to content
Snippets Groups Projects
Commit 8dd70d4b authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Sprint/2021-02' into 'master'

Sprint/2021 02

See merge request !116
parents 3322d655 057fb2df
Branches
Tags
1 merge request!116Sprint/2021 02
...@@ -68,7 +68,28 @@ export class OrganizationApi { ...@@ -68,7 +68,28 @@ export class OrganizationApi {
) { ) {
apiConnectionBasic.setHeader(); apiConnectionBasic.setHeader();
return axios return axios
.get(getOrganizationApiUrl() + '-/isRWTHMember') .get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent('https://ror.org/04xfq0f34'))
.then(thenHandler)
.catch(catchHandler);
}
public static isMember(
organizationUrl: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent(organizationUrl))
.then(thenHandler)
.catch(catchHandler);
}
public static getMemberships(
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isMember')
.then(thenHandler) .then(thenHandler)
.catch(catchHandler); .catch(catchHandler);
} }
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment