FIX: Remove :term from admin/search_logs/term/:term route.

Search log terms is a string that can contain characters like `/` which
messes with the route.
This commit is contained in:
Guo Xiang Tan
2019-03-29 09:48:20 +08:00
parent c836d67cac
commit 8c2fa99f78
4 changed files with 19 additions and 7 deletions

View File

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