Compare commits
2 Commits
ad4d2df1e0
...
2c6ed5a839
Author | SHA1 | Date | |
---|---|---|---|
2c6ed5a839 | |||
53fde0d116 |
@ -40,6 +40,11 @@ class SettingsController extends Controller {
|
||||
return $this->makeJSONResponse(fn () => $this->appSettings->getGlobal());
|
||||
}
|
||||
|
||||
#[NoCSRFRequired]
|
||||
public function getGlobal(): JSONResponse {
|
||||
return $this->makeJSONResponse(fn () => $this->appSettings->getGlobal());
|
||||
}
|
||||
|
||||
protected function makeJSONResponse(Closure $closure): JSONResponse {
|
||||
try {
|
||||
return new JSONResponse($closure(), HTTP::STATUS_OK);
|
||||
|
Loading…
Reference in New Issue
Block a user