dynamic display of notifications
This commit is contained in:
1 parent
ddd0180933
commit
883b9b6c4b
2 files changed
+7
-5
No files matched your search
@@ -1,7 +1,7 @@
|
||||
export default async function getUserNotifications() {
|
||||
export default async function getUserNotifications(id) {
|
||||
try {
|
||||
const response = await fetch(
|
||||
'http://localhost:80/api/users/1/notifications',
|
||||
`http://${import.meta.env.VITE_API_URL}/api/users/${id}/notifications`,
|
||||
{
|
||||
method: 'GET',
|
||||
credentials: 'include',
|
||||
|
||||
Reference in new issue
Block a user