Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Oppdatert logging på ping-endepunktet
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsAnd committed Mar 2, 2021
1 parent 00eee6e commit 0c2b56c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Ping/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { logConfig, logger } = require('@vtfk/logger')
const getResponseObject = require('../lib/get-response-object')

module.exports = async function (context, req) {
logConfig({ azure: { context }})
logConfig({ azure: { context } })
logger('verbose', ['ping', req.headers.host])

return {
body: {
ping: 'pong'
}
}
return getResponseObject({
ping: 'pong',
timestamp: new Date().getTime()
})
}

0 comments on commit 0c2b56c

Please # to comment.