From 60c973ed2a8e58cc7e9d7e6ca69e17f6ec023c32 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 7 Jul 2018 00:20:06 +0200 Subject: Began public key "API" --- app/Http/Controllers/PublicKeyController.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/Http/Controllers/PublicKeyController.php (limited to 'app/Http') diff --git a/app/Http/Controllers/PublicKeyController.php b/app/Http/Controllers/PublicKeyController.php new file mode 100644 index 0000000..4fbdd64 --- /dev/null +++ b/app/Http/Controllers/PublicKeyController.php @@ -0,0 +1,17 @@ +where('user_id', $user_id) + ->value('key'); + // TODO: Friends: do not allow to request every public key + return $public_key ? $public_key : abort(404); + } +} -- cgit v1.2.3