-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline all server-side routes with static imports
- Loading branch information
Showing
5 changed files
with
50 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let _keys = null | ||
|
||
export function setPublicKeys (keys) { | ||
_keys = keys | ||
} | ||
|
||
export function getPublicKeys () { | ||
return _keys | ||
} |
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 hostname from './hostname.js' | ||
import keys from './keys.js' | ||
import privateSocket from './private-socket.js' | ||
import test500Error from './test-500-error.js' | ||
|
||
export const httpsRoutes = { | ||
'/hostname': hostname, | ||
'/keys': keys, | ||
'/private-socket': privateSocket, | ||
'/test-500-error': test500Error | ||
} |
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,6 @@ | ||
import privateToken from './private_token.js' | ||
|
||
export const wssRoutes = { | ||
'/private/:token': privateToken | ||
} | ||
|