Skip to content

Commit

Permalink
Register insights endpoint for topic recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
Camille Croci committed May 30, 2024
1 parent cbfe1d8 commit 757cc83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/metrics/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ module.exports = {
'insights-api-recommended-newsletters': /^https:\/\/api.ft.com\/snr\/v1\/insights\/recommended-newsletters\/[\w\-]+/,
'insights-api-recommended-articles': /^https:\/\/api.ft.com\/snr\/v1\/insights\/recommended-articles\/[\w\-]+/,
'insights-api-similarity-articles': /^https:\/\/api.ft.com\/snr\/v1\/insights\/recommendations\/articles\/methods\/similarity/,
'insights-api-topic-recommendations': /^https:\/\/api.ft.com\/snr\/v1\/insights\/topic-recommendations\/[\w\-]+/,

Check failure

Code scanning / CodeQL

Incomplete regular expression for hostnames High

This regular expression has an unescaped '.' before 'ft.com', so it might match more hosts than expected.
'ip-voltdb-api': /^https?:\/\/voltdb-api-(us|eu|eu-test|global).in.ft.com\//,
'three-play-media': /^https:\/\/api\.3playmedia\.com\/v3\/.*/,
'kat': /^https?:\/\/kat\.ft\.com\/api\//,
Expand Down

0 comments on commit 757cc83

Please sign in to comment.