Dark Flame Master

This commit is contained in:
Eduard Urbach 2017-07-05 23:48:29 +02:00
parent 7b8cc06419
commit 0a24af41b1
2 changed files with 8 additions and 1 deletions

View File

@ -32,12 +32,19 @@ func init() {
searchTerm := requestURI[len("/search/"):] searchTerm := requestURI[len("/search/"):]
ctx.Request.URL.RawQuery = "q=" + searchTerm ctx.Request.URL.RawQuery = "q=" + searchTerm
ctx.SetURI("/search") ctx.SetURI("/search")
return
} }
if strings.HasPrefix(requestURI, "/_/search/") { if strings.HasPrefix(requestURI, "/_/search/") {
searchTerm := requestURI[len("/_/search/"):] searchTerm := requestURI[len("/_/search/"):]
ctx.Request.URL.RawQuery = "q=" + searchTerm ctx.Request.URL.RawQuery = "q=" + searchTerm
ctx.SetURI("/_/search") ctx.SetURI("/_/search")
return
}
if requestURI == "/dark-flame-master" {
ctx.SetURI("/api/analytics/new")
return
} }
}) })
} }

View File

@ -120,7 +120,7 @@ export class AnimeNotifier {
} }
} }
fetch("/api/analytics/new", { fetch("/dark-flame-master", {
method: "POST", method: "POST",
credentials: "same-origin", credentials: "same-origin",
body: JSON.stringify(analytics) body: JSON.stringify(analytics)