diff options
author | Marvin Borner | 2018-07-09 19:57:19 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-09 19:57:19 +0200 |
commit | 75adb031897ab2a2b66051e1acb186bfdff6a4a4 (patch) | |
tree | 5cacef38857ba9d76342bdca79fc77754a908e38 /app/Http/Controllers/PublicKeyController.php | |
parent | 0675967adc29e267f7b15bd9f9090bb16cb0339b (diff) |
Better API
Diffstat (limited to 'app/Http/Controllers/PublicKeyController.php')
-rw-r--r-- | app/Http/Controllers/PublicKeyController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/Controllers/PublicKeyController.php b/app/Http/Controllers/PublicKeyController.php index 4557733..af59cc2 100644 --- a/app/Http/Controllers/PublicKeyController.php +++ b/app/Http/Controllers/PublicKeyController.php @@ -29,7 +29,7 @@ class PublicKeyController extends Controller $public_key->key = $request->input('key'); $public_key->save(); - return response()->json(['message' => 'Successfully inserted public key.']); + return response()->json(['message' => 'Successfully inserted public key.'], 201); } public function setUsersKeyByCookie(Request $request) |