17 lines
374 B
Dart
17 lines
374 B
Dart
|
import 'package:go_router/go_router.dart';
|
||
|
import 'package:mchess/pages/chess_app.dart';
|
||
|
import 'package:mchess/pages/lobby_selector.dart';
|
||
|
|
||
|
final router = GoRouter(
|
||
|
routes: [
|
||
|
GoRoute(
|
||
|
path: '/',
|
||
|
builder: (context, state) => const LobbySelector(),
|
||
|
),
|
||
|
GoRoute(
|
||
|
path: '/play',
|
||
|
builder: (context, state) => const ChessApp(),
|
||
|
)
|
||
|
],
|
||
|
);
|