Moving create community to the top so "create" is not interpreted as an ID

This commit is contained in:
Ben Bosman
2020-03-18 11:43:20 +01:00
parent e76c6e4dc3
commit 5ec544ffea

View File

@@ -33,6 +33,11 @@ const COMMUNITY_EDIT_PATH = 'edit';
@NgModule({
imports: [
RouterModule.forChild([
{
path: COMMUNITY_CREATE_PATH,
component: CreateCommunityPageComponent,
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
},
{
path: ':id',
resolve: {
@@ -58,11 +63,6 @@ const COMMUNITY_EDIT_PATH = 'edit';
}
]
},
{
path: COMMUNITY_CREATE_PATH,
component: CreateCommunityPageComponent,
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
},
])
],
providers: [