Skip to content

Commit

Permalink
Fix formatting and reorder routes in add.component.html and app.route…
Browse files Browse the repository at this point in the history
…s.ts
  • Loading branch information
EliasDeHondt committed Feb 25, 2025
1 parent 2c9c2f2 commit 8bdf717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion App/Frontend/src/app/add/add.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</button>
<input #fileInput type="file" accept=".yaml,.yml" (change)="onFileUpload($event)" hidden>
</header>
<app-nav class="nav" id="nav"></app-nav>
<app-nav class="nav" id="nav"></app-nav>
<main class="add-main">
<section class="add-textarea-container">
<button class="add-clear-button" (click)="clearTextarea()"></button>
Expand Down
6 changes: 3 additions & 3 deletions App/Frontend/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import { LoginComponent } from './login/login.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { SearchComponent } from './search/search.component';
import { AddComponent } from "./add/add.component";
import {SpiderWebComponent} from "./spider-web/spider-web.component";
import { SpiderWebComponent } from "./spider-web/spider-web.component";
import { NotFoundComponent } from './notfound/notfound.component';
import {AuthGuard} from "./authGuard/auth.guard";
import { AuthGuard } from "./authGuard/auth.guard";

export const routes: Routes = [
{ path: '', redirectTo: 'login', pathMatch: 'full' },
{ path: 'login', component: LoginComponent, data: { title: 'K10s - Login' } },
{ path: 'dashboard', component: DashboardComponent, data: { title: 'K10s - Dashboard' }, canActivate: [AuthGuard] },
{ path: 'search', component: SearchComponent, data: { title: 'K10s - Search' }, canActivate: [AuthGuard] },
{ path: 'add', component: AddComponent, data: { title: 'K10s - Add' }, canActivate: [AuthGuard] },
{ path: '**', component: NotFoundComponent, data: { title: 'K10s - Not Found' } },
{ path: 'spiderweb', component: SpiderWebComponent, data: { title: 'K10s - Testing' }, canActivate: [AuthGuard] },
{ path: '**', component: NotFoundComponent, data: { title: 'K10s - Not Found' } },
];

0 comments on commit 8bdf717

Please sign in to comment.