Take in account transcoding for video quota
[oweals/peertube.git] / client / src / app / +admin / users / users.routes.ts
1 import { Routes } from '@angular/router'
2
3 import { UsersComponent } from './users.component'
4 import { UserAddComponent, UserUpdateComponent } from './user-edit'
5 import { UserListComponent } from './user-list'
6
7 export const UsersRoutes: Routes = [
8   {
9     path: 'users',
10     component: UsersComponent,
11     children: [
12       {
13         path: '',
14         redirectTo: 'list',
15         pathMatch: 'full'
16       },
17       {
18         path: 'list',
19         component: UserListComponent,
20         data: {
21           meta: {
22             title: 'Users list'
23           }
24         }
25       },
26       {
27         path: 'add',
28         component: UserAddComponent,
29         data: {
30           meta: {
31             title: 'Add a user'
32           }
33         }
34       },
35       {
36         path: ':id/update',
37         component: UserUpdateComponent,
38         data: {
39           meta: {
40             title: 'Update a user'
41           }
42         }
43       }
44     ]
45   }
46 ]