Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Sep 27, 2023
1 parent e12f706 commit 95ce0a4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/ping-isNotVerrified.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
POST http://localhost:3000 HTTP/1.1
content-type: application/json
x-signature-ed25519: 32c4f322a21ac05e7c9b7374bb702ccd834e56aeebe8320048440833f2e18358014a5790302fbe3ead8c956cdf2b05c9181b787c55c3e40dc6dbc3ab2cfe730f
x-signature-timestamp: 1686871505

{"message":"PING"}
6 changes: 6 additions & 0 deletions examples/ping-isVerrified.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
POST http://localhost:3000 HTTP/1.1
content-type: application/json
x-signature-ed25519: ce31903c09e8f059df392aeccb5c5be2fd6fc317be17149eba60c6c7dc420c328490f316379a28b59bdf2506772ddbed35abf951ce7c84121279de27161e9b06
x-signature-timestamp: 1686871414

{"message":"PING"}
File renamed without changes.
6 changes: 4 additions & 2 deletions src/banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export function banner() {
/metrics
/subscribe
HTTP POST (Ed25519 signature)
/ {timestamp, signature, body}
/ {"message":"PING"}
WebSocket
message <moduleHash>
`

return text;
}

0 comments on commit 95ce0a4

Please sign in to comment.