Frontend first draft
This commit is contained in:
15
frontend/pweb/lib/app/router/page_params.dart
Normal file
15
frontend/pweb/lib/app/router/page_params.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
enum PageParams {
|
||||
token,
|
||||
projectRef,
|
||||
roleRef,
|
||||
taskRef,
|
||||
invitationRef,
|
||||
}
|
||||
|
||||
String routerPageParam(PageParams param) {
|
||||
return ':${param.name}';
|
||||
}
|
||||
|
||||
String routerAddParam(PageParams param) {
|
||||
return '/${routerPageParam(param)}';
|
||||
}
|
||||
Reference in New Issue
Block a user