Преглед на файлове

Update components, fix api endpoints. Fixes #3138

Daniel Supernault преди 3 години
родител
ревизия
e724633e0f
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      resources/assets/js/components/NotificationCard.vue
  2. 1 1
      resources/assets/js/components/Timeline.vue

+ 1 - 1
resources/assets/js/components/NotificationCard.vue

@@ -165,7 +165,7 @@
 
 		methods: {
 			fetchNotifications() {
-				axios.get('/api/v1/notifications?pg=true')
+				axios.get('/api/pixelfed/v1/notifications?pg=true')
 				.then(res => {
 					let data = res.data.filter(n => {
 						if(n.type == 'share' && !n.status) {

+ 1 - 1
resources/assets/js/components/Timeline.vue

@@ -591,7 +591,7 @@
 
 		methods: {
 			fetchProfile() {
-				axios.get('/api/v1/accounts/verify_credentials').then(res => {
+				axios.get('/api/pixelfed/v1/accounts/verify_credentials').then(res => {
 					this.profile = res.data;
 					if(this.profile.is_admin == true) {
 						this.modes.mod = true;