mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
* Added initial challenge pages * Added challenge item and find guilds page * Added challenge detail * Added challenge modals * Ported over challenge service code * Ported over challenge ctrl code * Added styles and column * Minor modal updates * Removed duplicate keys * Fixed casing * Added initial chat component * Added copy as todo modal * Added sync * Added chat to groups * Fixed lint * Added notification service * Added tag services * Added notifications * Added hall * Added analytics * Added http interceptor * Added initial autocomplete * Added initial footer component * Began coding and designing footer * Added inital hall * Ported over inital group plan ctrl code * Added initial invite modal * Added initial member detail modal * Added initial notification menu * Ported over inital notification code * Fixed import line * Fixed autocomplete import casing
15 lines
449 B
JavaScript
15 lines
449 B
JavaScript
import axios from 'axios';
|
|
|
|
export async function readNotification (store, payload) {
|
|
let url = `api/v3/notifications/${payload.notificationId}/read`;
|
|
let response = await axios.post(url);
|
|
return response.data.data;
|
|
}
|
|
|
|
export async function readNotifications (store, payload) {
|
|
let url = 'api/v3/notifications/read';
|
|
let response = await axios.post(url, {
|
|
notificationIds: payload.notificationIds,
|
|
});
|
|
return response.data.data;
|
|
}
|