Compare commits
2 Commits
2c6ed5a839
...
ad4d2df1e0
Author | SHA1 | Date | |
---|---|---|---|
ad4d2df1e0 | |||
19c0696d65 |
@ -40,11 +40,6 @@ class SettingsController extends Controller {
|
|||||||
return $this->makeJSONResponse(fn () => $this->appSettings->getGlobal());
|
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 {
|
protected function makeJSONResponse(Closure $closure): JSONResponse {
|
||||||
try {
|
try {
|
||||||
return new JSONResponse($closure(), HTTP::STATUS_OK);
|
return new JSONResponse($closure(), HTTP::STATUS_OK);
|
||||||
|
Loading…
Reference in New Issue
Block a user