init
This commit is contained in:
16
lib/routes/auth_routes.dart
Normal file
16
lib/routes/auth_routes.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:chat/middleware/auth_middleware.dart';
|
||||
import 'package:chat/views/auth/index_page.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
abstract class AuthRoutes {
|
||||
/// 身份验证页面
|
||||
static const String index = '/auth';
|
||||
|
||||
static GetPage router = GetPage(
|
||||
name: AuthRoutes.index,
|
||||
middlewares: [
|
||||
EnsureNotAuthMiddleware(),
|
||||
],
|
||||
page: () => const AuthPage(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user