FEATURE: search logs page (#5313)

This commit is contained in:
Arpit Jalan
2017-11-15 05:43:50 +05:30
committed by Sam
parent 7ecc15cad1
commit 3831663fea
15 changed files with 231 additions and 1 deletions

View File

@ -391,6 +391,12 @@ export default function() {
return response(200, result);
});
this.get('/admin/logs/search_logs.json', () => {
return response(200, [
{"term":"foobar","searches":35,"click_through":6,"clicked_topic_id":1550,"topic_title":"Foo Bar Topic Title","topic_url":"http://discourse.example.com/t/foo-bar-topic-title/1550","unique":16}
]);
});
this.get('/onebox', request => {
if (request.queryParams.url === 'http://www.example.com/has-title.html' ||
request.queryParams.url === 'http://www.example.com/has-title-and-a-url-that-is-more-than-80-characters-because-thats-good-for-seo-i-guess.html') {