Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7ca5e5d

Browse files
author
Md Obydullah
authored
Update AllBooks.vue
1 parent 8e75af2 commit 7ca5e5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎resources/js/components/AllBooks.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
},
4343
created() {
4444
this.axios
45-
.get('https://laravel.dev/api/books')
45+
.get('http://localhost:8000/api/books')
4646
.then(response => {
4747
this.books = response.data;
4848
});
4949
},
5050
methods: {
5151
deleteBook(id) {
5252
this.axios
53-
.delete(`https://laravel.dev/api/book/delete/${id}`)
53+
.delete(`http://localhost:8000/api/book/delete/${id}`)
5454
.then(response => {
5555
let i = this.books.map(item => item.id).indexOf(id); // find index of your object
5656
this.books.splice(i, 1)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /