Resource Page outside filament

I have a filament resource and there, there is the getPages method, which registers the routes for the resource:

public static function getPages(): array
{
    return [
        'index' => Pages\ListMailTemplates::route('/'),
        'create' => Pages\CreateMailTemplate::route('/create'),
        'edit' => Pages\EditMailTemplate::route('/{record}/edit'),
    ];
}


Is there a way, to add none "Filament" pages as well, for example to a regular Controller?

I wanna add a "preview" route for it:

public static function getPages(): array
{
    return [
        ...
        'preview' => ????,
    ];
}


For now, I added it as a classical route.
Was this page helpful?