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
This commit is contained in:
Jakob Meier 2023-03-21 20:26:24 +01:00
parent 6347476b2f
commit 69d1892fc8
No known key found for this signature in database
GPG key ID: 66BDC7E6A01A6152
2 changed files with 2 additions and 2 deletions

View file

@ -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'] ?? "",

View file

@ -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',
),