-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement integration types api on frontend
- Loading branch information
1 parent
9f5db19
commit cb9e76d
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ export async function GET(req: Request) { | |
access_token | ||
); | ||
|
||
return $res(response); | ||
return $res(response.data); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { CreateResponse, IIntegrationType } from '@app/interfaces'; | ||
import api from '../../axios'; | ||
import { IIntegrationType } from '@app/interfaces'; | ||
import { get } from '../../axios'; | ||
|
||
export function getIntegrationTypesAPI() { | ||
return api.get<CreateResponse<IIntegrationType[]>>(`/integration/types`); | ||
return get<IIntegrationType[]>(`/integration/types`); | ||
} |