lthn.io/app/Mod/Names/Routes/web.php
Claude 8f9c1f282e
feat: email notifications on claim approval + OG images for names
ClaimApproved mailable sent when admin approves a claim — dark
themed HTML email with name, next steps, and CTA links. Wrapped
in try/catch so email failure doesn't block approval.

Dynamic SVG OpenGraph images at /names/{name}/og.svg — shows name,
type badge (Registered/Reserved/Gateway/Available), and branding.
og:image meta tag added to name detail pages via @push('head').

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 12:20:43 +01:00

11 lines
378 B
PHP

<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Route;
use Mod\Names\Controllers\NamesWebController;
Route::get('/', [NamesWebController::class, 'index']);
Route::get('/register', [NamesWebController::class, 'register']);
Route::get('/{name}/og.svg', \Mod\Names\Controllers\OgImageController::class);
Route::get('/{name}', [NamesWebController::class, 'show']);