Spaces:
Running
Running
Download app/Http/Middleware/EnsureChemistryApiAvailable.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/main/app/Http/Middleware/EnsureChemistryApiAvailable.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api/app/Http/Middleware/EnsureChemistryApiAvailable.php
-
curl -L -o EnsureChemistryApiAvailable.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/main/app/Http/Middleware/EnsureChemistryApiAvailable.php
442 Bytes
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Symfony\Component\HttpFoundation\Response; | |
| class EnsureChemistryApiAvailable | |
| { | |
| /** | |
| * Handle an incoming request. | |
| * | |
| * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next | |
| */ | |
| public function handle(Request $request, Closure $next): Response | |
| { | |
| return $next($request); | |
| } | |
| } | |