Update endpoint, method

This commit is contained in:
Michael Fatemi 2021-04-10 15:17:00 -04:00
parent 3b62ba29eb
commit f3ff38956b
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
// eslint-disable-next-line
const dev = process.env.NODE_ENV === 'development';
export const API_ENDPOINT = 'http://localhost/api';
export const API_ENDPOINT = 'http://localhost:5000/api';
export const ION_AUTHORIZATION_ENDPOINT =
'https://ion.tjhsst.edu/oauth/authorize?response_type=code&client_id=rNa6n9YSg8ftINdyVPpUsaMuxNbHLo9dh1OsOktR&scope=read&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fion%2Fcallback';

View File

@ -12,7 +12,7 @@ export default function Authenticator() {
useEffect(() => {
fetch(`${API_ENDPOINT}/create_session`, {
method: 'post',
method: 'POST',
body: JSON.stringify({
code,
provider,