@rip-lang/server 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.rip +3 -2
package/package.json
CHANGED
package/server.rip
CHANGED
|
@@ -728,13 +728,14 @@ class Server
|
|
|
728
728
|
status: ->
|
|
729
729
|
uptime = Math.floor((nowMs() - @startedAt) / 1000)
|
|
730
730
|
healthy = @sockets.length > 0
|
|
731
|
+
hosts = Array.from(@hostRegistry.values())
|
|
731
732
|
body = JSON.stringify
|
|
732
733
|
status: if healthy then 'healthy' else 'degraded'
|
|
733
734
|
app: @flags.appName
|
|
734
735
|
workers: @sockets.length
|
|
735
736
|
ports: { http: @flags.httpPort or undefined, https: @flags.httpsPort or undefined }
|
|
736
|
-
uptime
|
|
737
|
-
hosts:
|
|
737
|
+
uptime: uptime
|
|
738
|
+
hosts: hosts
|
|
738
739
|
headers = new Headers({ 'content-type': 'application/json', 'cache-control': 'no-cache' })
|
|
739
740
|
@maybeAddSecurityHeaders(headers)
|
|
740
741
|
new Response(body, { headers })
|