Skip to content

Commit 509da42

Browse files
TDannhauerralflang
authored andcommitted
Add download service route to routes.php
Added a new download service route with specified methods and defaults.
1 parent 5194b9a commit 509da42

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

config/routes.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,3 +516,12 @@
516516
])
517517
->withMethods(['GET', 'POST'])
518518
->add();
519+
520+
// Download service route for routed (Rampage) requests.
521+
// Keeps classic /services/download/ query contract (app, fn, token, ...).
522+
$mapper->buildRoute(uri: '/services/download/', name: 'DownloadService')
523+
->withController(DownloadController::class)
524+
->withDefaults(['HordeAuthType' => 'NONE'])
525+
->withSecondaryRoute('/services/download')
526+
->withMethods(['GET', 'POST'])
527+
->add();

0 commit comments

Comments
 (0)