Revize 73804802
Přidáno uživatelem Cajova-Houba před téměř 7 roky(ů)
backend/app/Http/Controllers/DeviceController.php | ||
---|---|---|
82 | 82 |
public function lastDay() { |
83 | 83 |
return Zaznam::lastInsertedDate(); |
84 | 84 |
} |
85 |
|
|
86 |
public function headerTest(Request $request) { |
|
87 |
$authHeader = $request->header("jwt"); |
|
88 |
|
|
89 |
if($authHeader != null) { |
|
90 |
return $authHeader; |
|
91 |
} else { |
|
92 |
return $request->header("jwt"); |
|
93 |
} |
|
94 |
} |
|
85 | 95 |
} |
Také k dispozici: Unified diff
refs #6742: Pridano api pro generovani JWT.