summaryrefslogtreecommitdiff
path: root/includes/controller/shifts_controller.php
diff options
context:
space:
mode:
authormarudor <marudor@marudor.de>2018-02-08 22:57:41 +0100
committermarudor <marudor@marudor.de>2018-02-08 22:57:41 +0100
commit71b41847e6247471abb957b5859605d9f92fb77e (patch)
tree4b5fa812949a4f91b2ed347d9320c9143633f99a /includes/controller/shifts_controller.php
parent7af09433def2fda9ec47b12823b16e3392b5f6cf (diff)
parent6dbec2e2fb64ad8a2f9ae1c9271a401e097a989f (diff)
Merge remote-tracking branch 'origin/master'
# Conflicts: # public/css/theme0.css # public/css/theme1.css # public/css/theme2.css # public/css/theme3.css # public/css/theme4.css # public/css/theme5.css # public/css/theme6.css
Diffstat (limited to 'includes/controller/shifts_controller.php')
-rw-r--r--includes/controller/shifts_controller.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php
index 5930595e..73a5d29f 100644
--- a/includes/controller/shifts_controller.php
+++ b/includes/controller/shifts_controller.php
@@ -346,32 +346,6 @@ function shift_next_controller()
}
/**
- * Export all shifts using api-key.
- */
-function shifts_json_export_all_controller()
-{
- $api_key = config('api_key');
- $request = request();
-
- if (empty($api_key)) {
- engelsystem_error('Config contains empty apikey.');
- }
-
- if (!$request->has('api_key')) {
- engelsystem_error('Missing parameter api_key.');
- }
-
- if ($request->input('api_key') != $api_key) {
- engelsystem_error('Invalid api_key.');
- }
-
- $shifts_source = Shifts();
-
- header('Content-Type: application/json; charset=utf-8');
- raw_output(json_encode($shifts_source));
-}
-
-/**
* Export filtered shifts via JSON.
* (Like iCal Export or shifts view)
*/