Spaces:
Sleeping
Sleeping
Download app/Http/Controllers/FrontendController.php from lifedebugger/raghub-fe: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/lifedebugger/raghub-fe/resolve/main/app/Http/Controllers/FrontendController.php
- Command line
-
hf download hf://spaces/lifedebugger/raghub-fe/app/Http/Controllers/FrontendController.php
-
curl -L -o FrontendController.php https://huggingface.co/spaces/lifedebugger/raghub-fe/resolve/main/app/Http/Controllers/FrontendController.php
423 Bytes
| namespace App\Http\Controllers; | |
| use Symfony\Component\HttpFoundation\BinaryFileResponse; | |
| class FrontendController extends Controller | |
| { | |
| public function index(): BinaryFileResponse | |
| { | |
| $indexPath = public_path('fe/index.html'); | |
| abort_unless(file_exists($indexPath), 503, 'Frontend build is missing. Run npm --prefix frontend run build.'); | |
| return response()->file($indexPath); | |
| } | |
| } | |