mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 13:23:45 +02:00
Finish first round of User/Node API additions
Will still need some tweaking and improvements to allow everything to be used.
This commit is contained in:
@@ -146,13 +146,17 @@ class UserController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
return $this->fractal->item($collection->get('user'))
|
||||
$response = $this->fractal->item($collection->get('model'))
|
||||
->transformWith(new UserTransformer($request))
|
||||
->withResourceName('user')
|
||||
->addMeta([
|
||||
->withResourceName('user');
|
||||
|
||||
if (count($errors) > 0) {
|
||||
$response->addMeta([
|
||||
'revocation_errors' => $errors,
|
||||
])
|
||||
->toArray();
|
||||
]);
|
||||
}
|
||||
|
||||
return $response->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user