Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function axiosDelete() {
- axios.get("https://lib.poas45.ru/books").then((response) => {
- console.log(response);
- console.log(response.data.length);
- for (index = 3; index < response.data.length; index++) {
- axios.delete(`https://lib.poas45.ru/books/${index}`).then((response) => {
- console.log(response);
- });
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement