Explorar o código

Use new user route

sbkwgh %!s(int64=7) %!d(string=hai) anos
pai
achega
a0626d01c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      frontend/src/components/AdminNewAdmin.vue

+ 1 - 1
frontend/src/components/AdminNewAdmin.vue

@@ -89,7 +89,7 @@
 		},
 		created () {
 			this.axios
-				.get('/api/v1/user?admin=true')
+				.get('/api/v1/user?role=admin')
 				.then(res => {
 					this.admins = res.data
 				})