Replace string with constant.

This commit is contained in:
James Cole
2020-10-03 16:51:44 +02:00
parent d89e4ec143
commit b8e36b0398
25 changed files with 123 additions and 122 deletions

View File

@@ -71,7 +71,7 @@ class ConfigurationController extends Controller
{
$configData = $this->getConfigData();
return response()->json(['data' => $configData])->header('Content-Type', 'application/vnd.api+json');
return response()->json(['data' => $configData])->header('Content-Type', self::CONTENT_TYPE);
}
/**
@@ -88,7 +88,7 @@ class ConfigurationController extends Controller
app('fireflyconfig')->set($name, $data['value']);
$configData = $this->getConfigData();
return response()->json(['data' => $configData])->header('Content-Type', 'application/vnd.api+json');
return response()->json(['data' => $configData])->header('Content-Type', self::CONTENT_TYPE);
}
/**