Skip to content

Commit 5751275

Browse files
committed
Hook up how to get to trouble tickets page
1 parent 01701e5 commit 5751275

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/queries/admin/render.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const render = () => html`
2020
</li>
2121
<li><a href="/members/create">Link an email and number</a></li>
2222
<li><a href="/training-status.csv">Download current owners and trainers</li>
23+
<li><a href="/trouble-tickets">View all trouble tickets (prototype)</li>
2324
</ul>
2425
</nav>
2526
</div>

src/queries/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ export {me} from './me';
1313
export {failedImports} from './failed-imports';
1414
export {dumpSharedDbAsJson, dumpSharedDbAsBuffer} from './debug';
1515
export {domainEvents} from './domain-events';
16+
export {troubleTickets} from './trouble-tickets';
1617
export {Query} from './query';

src/routes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ export const initRoutes = (
6969
get('/ping', ping),
7070
query('/debug/dump-shared-db/json', queries.dumpSharedDbAsJson),
7171
query('/debug/dump-shared-db/buffer', queries.dumpSharedDbAsBuffer),
72+
73+
// Temporary location for POC - may move under individual equipments eventually.
74+
query('/trouble-tickets', queries.troubleTickets),
7275
...authRoutes(deps),
7376
];
7477
};

0 commit comments

Comments
 (0)