fix(gh): pull request router
This commit is contained in:
parent
8d1e3fa596
commit
a30385a414
|
@ -246,11 +246,16 @@ final router = GoRouter(
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: 'pull',
|
path: 'pulls',
|
||||||
builder: (context, state) => GhPullsScreen(
|
builder: (context, state) => GhPullsScreen(
|
||||||
state.params['owner']!,
|
state.params['owner']!,
|
||||||
state.params['name']!,
|
state.params['name']!,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
GoRoute(
|
||||||
|
path: 'pull',
|
||||||
|
redirect: (state) =>
|
||||||
|
'/github/${state.params['owner']!}/${state.params['name']!}/pulls',
|
||||||
routes: [
|
routes: [
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: ':number',
|
path: ':number',
|
||||||
|
|
Loading…
Reference in New Issue