Backend for songs.zachdecook.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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; ?>
Songs are often copyrighted.
=> gemini://gemini.zachdecook.com Site by Zach DeCook
=> https://git.sr.ht/~earboxer/prosongsa View source code
|