added support for legacy tickets, fixed switching of modes and also style updates
tests / ci (push) Canceled after 0s

This commit is contained in:
Mark Gregory
2026-10-14 16:21:15 +01:00
parent efb8ee3898
commit e241c08ef6
41 changed files with 638 additions and 27 deletions
@@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Route;
use Modules\Helpdesk\Http\Controllers\GitWebhookController;
use Modules\Helpdesk\Http\Controllers\WorkflowOpenController;
use Modules\Helpdesk\Support\ModuleInfo;
use Modules\Helpdesk\Http\Controllers\NativeAuthorizationController;
final class RouteServiceProvider extends ServiceProvider
{
@@ -42,6 +43,17 @@ final class RouteServiceProvider extends ServiceProvider
->prefix(config('helpdesk.route_prefix', 'helpdesk'))
->name('helpdesk.')
->group(module_path(ModuleInfo::name(), 'Routes/web.php'));
// Native macOS authentication through Laravel Fortify.
Route::middleware(['web', 'auth:web'])
->prefix('helpdesk/native')
->name('helpdesk.native.')
->group(function (): void {
Route::get('/authorize', [NativeAuthorizationController::class, 'authorize'])
->name('authorize');
Route::post('/authorize', [NativeAuthorizationController::class, 'approve'])
->name('approve');
});
}
/**