mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-04 16:56:56 +00:00
Merge pull request #231 from m-ocean-it/patch-1
fix crashing: await for Promise
This commit is contained in:
commit
ea497429ac
@ -43,10 +43,10 @@ app.get('/', (req, res) => {
|
||||
|
||||
|
||||
// Metrics endpoint
|
||||
app.get('/metrics', (req, res) => {
|
||||
app.get('/metrics', async (req, res) => {
|
||||
res.set('Content-Type', client.register.contentType)
|
||||
res.end(client.register.metrics())
|
||||
res.end(await client.register.metrics())
|
||||
})
|
||||
|
||||
app.listen(PORT, HOST);
|
||||
console.log(`Running on http://${HOST}:${PORT}`);
|
||||
console.log(`Running on http://${HOST}:${PORT}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user