controller refactoring part 16

This commit is contained in:
Peter Papp
2021-07-21 10:00:41 +02:00
parent 58d8724cea
commit e0eaf5cede
25 changed files with 100 additions and 151 deletions

View File

@@ -131,7 +131,7 @@
},
methods: {
fetchUser() {
axios.get('/api/admin/users/' + this.$route.params.id + '/detail')
axios.get('/api/admin/users/' + this.$route.params.id)
.then(response => {
this.user = response.data
this.isLoading = false

View File

@@ -162,7 +162,7 @@
// Send request to get user token
axios
.post('/api/admin/users/create', formData, {
.post('/api/admin/users', formData, {
headers: {
'Content-Type': 'multipart/form-data',
}