From 74cb1477bb921a2378ea22a552b71a48c11e0931 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 20 Jul 2018 16:34:32 +0200 Subject: Better API (integrated oauth completely) --- infrastructure/Api/Controllers/DefaultApiController.php | 17 +++++++++++++++++ infrastructure/Api/routes_public.php | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 infrastructure/Api/Controllers/DefaultApiController.php create mode 100644 infrastructure/Api/routes_public.php (limited to 'infrastructure/Api') diff --git a/infrastructure/Api/Controllers/DefaultApiController.php b/infrastructure/Api/Controllers/DefaultApiController.php new file mode 100644 index 0000000..cb850a5 --- /dev/null +++ b/infrastructure/Api/Controllers/DefaultApiController.php @@ -0,0 +1,17 @@ +json([ + 'title' => 'BEAM-Messenger', + 'version' => Version::getGitTag() + ]); + } +} diff --git a/infrastructure/Api/routes_public.php b/infrastructure/Api/routes_public.php new file mode 100644 index 0000000..3609ea8 --- /dev/null +++ b/infrastructure/Api/routes_public.php @@ -0,0 +1,3 @@ +get('/', 'DefaultApiController@index'); \ No newline at end of file -- cgit v1.2.3