From 75adb031897ab2a2b66051e1acb186bfdff6a4a4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 9 Jul 2018 19:57:19 +0200 Subject: Better API --- app/Http/Controllers/PublicKeyController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Http/Controllers/PublicKeyController.php') 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) -- cgit v1.2.3