Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

V0.8.2 koi logs info #68

Open
wants to merge 3 commits into
base: v0.8.2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {statusRoute} from './route/status.route';
import {proxyRoute} from './route/proxy.route';
import {dataRouteRegex, dataHeadRoute, dataRoute} from './route/data.route';
import {peerRoute} from './route/peer.route';
import {koiLogger, koiLogsRoute, koiLogsRawRoute} from './route/koi.route';
import {koiLogger, koiLogsRoute, koiLogsRawRoute, koiLogsInfo} from './route/koi.route';
import {startSync} from './database/sync.database';

config();
Expand All @@ -34,6 +34,7 @@ export function start() {
app.get('/peers', peerRoute);
app.get('/logs', koiLogsRoute);
app.get('/logs/raw', koiLogsRawRoute);
app.get('/logs/info', koiLogsInfo);

app.all('*', proxyRoute);

Expand Down
4 changes: 4 additions & 0 deletions src/route/koi.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ export async function koiLogsRoute(req: Request, res: Response) {
export async function koiLogsRawRoute(req: Request, res: Response) {
return koiLogger.koiRawLogsHelper(req, res);
}

export async function koiLogsInfo(req: Request, res: Response) {
return koiLogger.info(req, res);
}
Loading