From 69d1892fc81be133e4c431bc172a3fc87045d64b Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Tue, 21 Mar 2023 20:26:24 +0100 Subject: [PATCH] Renamed /new-room endpoint to /add-room/new This has been done in an effort to move all endpoints used to join a room under one umbrella (/add-room) A list of planned or completed endpoints: - /add-room - /add-room/new - /add-room/by-id --- lib/main.dart | 2 +- lib/screens/room/join.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 4cb3884..48532dc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,7 +21,7 @@ final routesUnauthorized = RouteMap(routes: { // routes when user is logged in final routesLoggedIn = RouteMap(routes: { '/': (_) => const MaterialPage(child: HomePage()), - '/new-room': (_) => const MaterialPage(child: NewRoomPage()), + '/add-room/new': (_) => const MaterialPage(child: NewRoomPage()), '/add-room': (_) => const MaterialPage(child: JoinRoomPage()), '/r/:server/:tag/:page?': (info) => MaterialPage( child: RoomPage(info.pathParameters['server'] ?? "", diff --git a/lib/screens/room/join.dart b/lib/screens/room/join.dart index 57d2314..59c8f53 100644 --- a/lib/screens/room/join.dart +++ b/lib/screens/room/join.dart @@ -373,7 +373,7 @@ class _JoinRoomPageState extends State { icon: const Icon(Icons.add), onPressed: () { // create new room - Routemaster.of(context).push("/new-room"); + Routemaster.of(context).push("/add-room/new"); }, tooltip: 'Create Room', ),