Added privacy policy, upgrades

This commit is contained in:
2025-11-27 23:59:12 +01:00
parent fd4caaaa27
commit 75bb86f918
11 changed files with 704 additions and 493 deletions

View File

@@ -4,21 +4,13 @@
use App\Http\Redirection;
use Illuminate\Support\Facades\Route;
use League\CommonMark\CommonMarkConverter;
Route::get('/', fn () => view('homepage'));
Route::get('/early-access/release-notes', function () {
$path = public_path('builds/early-access/sponsors/changelog.md');
if (file_exists($path)) {
return view('changelog', [
'content' => (new CommonMarkConverter)
->convert(file_get_contents($path)),
]);
} else {
abort(404);
}
});
Route::get('/privacy-policy', \App\Http\PrivacyPolicyController::class)
->name('privacy-policy');
Route::get('/early-access/release-notes', \App\Http\ReleaseNotesController::class)
->name('release-notes');
collect([
Redirection::named('github', '/github', 'https://github.com/nicoverbruggen/phpmon'),