Merge branch 'main' of https://github.com/Kareadita/Kavita-webui into feature/directories

This commit is contained in:
Joseph Milazzo 2020-12-24 11:11:58 -06:00
commit 82b8525878
3 changed files with 3 additions and 6 deletions

View file

@ -1,6 +1,6 @@
// This interface is only used for login and storing/retreiving JWT from local storage
export interface User { export interface User {
username: string; username: string;
token: string; token: string;
photoUrl?: string;
roles: string[]; roles: string[];
} }

View file

@ -20,12 +20,8 @@ export class MemberService {
return this.httpClient.get<boolean>(this.baseUrl + 'admin/exists'); return this.httpClient.get<boolean>(this.baseUrl + 'admin/exists');
} }
updatePassword(newPassword: string) {
// TODO: Implement update password (use JWT to assume role)
}
deleteMember(username: string) { deleteMember(username: string) {
return this.httpClient.delete(this.baseUrl + 'admin/delete-user?username=' + username); return this.httpClient.delete(this.baseUrl + 'users/delete-user?username=' + username);
} }
} }

View file

@ -11,6 +11,7 @@ const routes: Routes = [
loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule) loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule)
}, },
{path: 'library', component: LibraryComponent}, {path: 'library', component: LibraryComponent},
{path: 'home', component: HomeComponent},
{path: '**', component: HomeComponent, pathMatch: 'full'} {path: '**', component: HomeComponent, pathMatch: 'full'}
]; ];