Skip to content

Commit

Permalink
Merge pull request #26 from acmutd/API-Wrapper-comments
Browse files Browse the repository at this point in the history
Update index.ts
  • Loading branch information
Tegasaur authored Mar 17, 2021
2 parents 586b7a0 + 5605eb2 commit bd07c81
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/acmApi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ import { useAuth0 } from "@auth0/auth0-react";
import { authorized } from "./authHelper";
import { AxiosInstance } from "axios";

/*
API WRAPPER
This contains a detached means to access and edit the backend through simple functions.
Each function is accessable through out the application and provides basic CRUD
functionality for accesing the backend. The name of each function provides an
intuitive description of its use.
NOTE: This file is not used in the application currently.
*/

interface Result {
message: string;
result: any;
Expand Down Expand Up @@ -133,4 +143,4 @@ export function useAcmApi() {
deleteEvent: authorized(deleteEvent, getAccessTokenSilently),
getEvent: authorized(getEvent, getAccessTokenSilently),
};
}
}

0 comments on commit bd07c81

Please sign in to comment.