Tecnicamente eso es todo del tutorial :c

This commit is contained in:
Daniel Cortés
2019-06-17 02:30:24 -04:00
parent b2d801addf
commit 0d30626baa
9 changed files with 4465 additions and 34940 deletions

19
resources/js/api/users.js vendored Normal file
View File

@@ -0,0 +1,19 @@
import axios from 'axios';
export default {
all() {
return axios.get('/api/users');
},
paginated(page) {
return axios.get('/api/users', page);
},
find(id) {
return axios.get(`/api/users/${id}`);
},
edit(id, data) {
return axios.put(`/api/users/${id}`, data);
},
delete(id) {
return axios.delete(`/api/users/${id}`);
}
};