2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

FEATURE: search log term details page (#5445)

This commit is contained in:
Arpit Jalan 2017-12-20 08:11:31 +05:30 committed by Sam
parent bbc606988f
commit eab66065d1
17 changed files with 172 additions and 9 deletions

View file

@ -401,6 +401,12 @@ export default function() {
]);
});
this.get('/admin/logs/search_logs/term/ruby.json', () => {
return response(200, {
"term":{"type":"search_log_term","title":"Search Count","data":[{"x":"2017-07-20","y":2}]}
});
});
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') {