From 6a0dd854c3f6f0ca4703f9a5a509d00b6c965a8d Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Thu, 2 Apr 2015 14:03:59 +0100 Subject: [PATCH] Add organisations to the metrics --- main.js | 1 + test/app.test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/main.js b/main.js index 16de352e..518e20c8 100644 --- a/main.js +++ b/main.js @@ -26,6 +26,7 @@ var serviceMatchers = { 'capi-v2-article': /^https?:\/\/api\.ft\.com\/content\/[\w\-]+/, 'capi-v2-enriched-article': /^https?:\/\/api\.ft\.com\/enrichedcontent\/[\w\-]+/, 'capi-v2-thing': /^https?:\/\/api\.ft\.com\/things\/[\w\-]+/, + 'capi-v2-organisation': /^https?:\/\/api\.ft\.com\/organisations\/[\w\-]+/, 'capi-v2-content-by-concept': /^https?:\/\/api\.ft\.com\/content\?isAnnotatedBy=http:\/\/api\.ft\.com\/things\/[\w\-]+/, // fastft fastft: /https?:\/\/clamo\.ftdata\.co\.uk\/api/ diff --git a/test/app.test.js b/test/app.test.js index 57899664..9277d455 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -90,6 +90,7 @@ describe('simple app', function() { 'capi-v2-article': 'http://api.ft.com/content/1234-abcd', 'capi-v2-enriched-article': 'http://api.ft.com/enrichedcontent/1234-abcd', 'capi-v2-thing': 'http://api.ft.com/things/1234-abcd', + 'capi-v2-organisation': 'http://api.ft.com/organisations/1234-abcd', 'capi-v2-content-by-concept': 'http://api.ft.com/content?isAnnotatedBy=http://api.ft.com/things/1234-abcd', 'hello': 'http://world.com' };