-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'KEA-ACCELER:develop' into develop
- Loading branch information
Showing
12 changed files
with
260 additions
and
59 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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# GitHub Auth | ||
|
||
REACT_APP_CLIENT_ID= | ||
GH_LOGIN_REDIRECT_URL=http://localhost:3000/login | ||
GH_LOGIN_REDIRECT_URL=http://localhost:3000/login | ||
|
||
REACT_APP_YORKIE_API_URL= | ||
REACT_APP_YORKIE_API_KEY= |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import axios from "axios"; | ||
|
||
const API_URL = process.env.REACT_APP_ALOG_API_URL; | ||
|
||
export const GetNotifications = (userToken) => { | ||
const data = axios.get(API_URL + "/api/noti", { | ||
headers: { | ||
Authorization: `Bearer ${userToken}`, | ||
} | ||
}).then((res) => { | ||
console.log(res); | ||
return res.data.data | ||
}).catch((err) => { | ||
console.log(err); | ||
return null | ||
}); | ||
return data; | ||
} | ||
|
||
export const CheckNotification = (userToken, notiId) => { | ||
const data = axios.put(API_URL + "/api/noti?id=" + notiId, null, { | ||
headers: { | ||
Authorization: `Bearer ${userToken}`, | ||
} | ||
}).then((res) => { | ||
console.log(res); | ||
return res | ||
}).catch((err) => { | ||
console.log(err); | ||
return null | ||
}); | ||
return data; | ||
} |
Oops, something went wrong.