mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Collection API.
This commit is contained in:
parent
f7f0c05e12
commit
11f1afe5c3
9 changed files with 400 additions and 64 deletions
|
|
@ -60,6 +60,7 @@ export function parseCollectRequest(req) {
|
|||
|
||||
if (hash(`${website_id}${session_id}${time}`) === validationHash) {
|
||||
return {
|
||||
valid: true,
|
||||
type,
|
||||
session_id,
|
||||
url,
|
||||
|
|
@ -68,5 +69,5 @@ export function parseCollectRequest(req) {
|
|||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
return { valid: false };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue