This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Optimized tag query and peer route * removing old koi, adding new koi logs :) (#65) * removing old koi, adding new koi logs :) * Delete yarn.lock * fixing order of express operations Co-authored-by: Al <al@openkoi.com> * Formatting * Sub query limit and offset * Update migrations Co-authored-by: Al Morris <37120777+alexander-morris@users.noreply.github.com> Co-authored-by: Al <al@openkoi.com>
- Loading branch information
1 parent
5408ff5
commit f33294d
Showing
9 changed files
with
1,587 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import KoiLogs from 'koi-logs'; | ||
import {Request, Response} from 'express'; | ||
|
||
export const koiLogger = new KoiLogs('./'); | ||
|
||
export async function koiLogsRoute(req: Request, res: Response) { | ||
return koiLogger.koiLogsHelper(req, res); | ||
} | ||
|
||
export async function koiLogsRawRoute(req: Request, res: Response) { | ||
return koiLogger.koiRawLogsHelper(req, res); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {Request, Response} from 'express'; | ||
|
||
export async function peerRoute(req: Request, res: Response) { | ||
return res.status(200).send({ | ||
status: 'OK', | ||
nodes: [ | ||
'https://gateway-n1.amplify.host', | ||
'https://gateway-n2.amplify.host', | ||
], | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.