diff options
| author | Zach DeCook <zachdecook@librem.one> | 2020-11-23 02:33:32 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2020-11-23 02:33:32 +0000 |
| commit | 60ceebd005844f6ae96d871c959e6cd700753a9f (patch) | |
| tree | 026a7398038dada987f4810e2b3b2c4dc15c79a8 /laravel/public/index.gmi | |
| parent | 61ad5c86543ac9d73f50d5d5b03ab12ef28b6304 (diff) | |
| download | prosongsa-60ceebd005844f6ae96d871c959e6cd700753a9f.tar.gz | |
* Gemini: Add index page
Diffstat (limited to 'laravel/public/index.gmi')
| -rwxr-xr-x | laravel/public/index.gmi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/laravel/public/index.gmi b/laravel/public/index.gmi new file mode 100755 index 0000000..849d7b8 --- /dev/null +++ b/laravel/public/index.gmi @@ -0,0 +1,15 @@ +#!/usr/bin/php +<?php + +define('LARAVEL_START', microtime(true)); +require __DIR__.'/../vendor/autoload.php'; +require __DIR__.'/../load-eloquent.php'; +$app = require_once __DIR__.'/../bootstrap/app.php'; +$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); +use App\Song; +printf("20 text/gemini\r\n"); +?> +<?php foreach(Song::all()->pluck('title','id') as $id => $title): ?> +=> /song.gmi.php/<?= $id ?> <?= $title ?> + +<?php endforeach; ?> |
