Skip to content

Commit

Permalink
f: front route: front /sub/sort route
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfzdfj committed Apr 9, 2024
1 parent 1a76355 commit afc1935
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/kbin_routes/front.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,21 @@ front_magazine:
federation: "%default_federation_options%"
content: "%default_content_options%"

front_sub:
controller: App\Controller\Entry\EntryFrontController::front_redirect
defaults: { subscription: home, sortBy: hot, time: '∞', type: all, federation: all, content: threads }
path: /{subscription}/{sortBy}/{time}/{type}/{federation}
methods: [GET]
requirements:
subscription: "%default_subscription_options%"
sortBy: "%default_sort_options%"
time: "%default_time_options%"
type: "%default_type_options%"
federation: "%default_federation_options%"

front_content:
controller: App\Controller\Entry\EntryFrontController::front_redirect
defaults: { sortBy: hot, time: '∞', type: all, federation: all, content: threads }
defaults: { subscription: home, sortBy: hot, time: '∞', type: all, federation: all, content: threads }
path: /{content}/{sortBy}/{time}/{type}/{federation}
methods: [GET]
requirements:
Expand Down

0 comments on commit afc1935

Please sign in to comment.