mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Updated collect API response.
This commit is contained in:
parent
17790aa5a8
commit
5ca6f76daa
3 changed files with 17 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ import ipaddr from 'ipaddr.js';
|
|||
import { savePageView, saveEvent } from 'lib/queries';
|
||||
import { useCors, useSession } from 'lib/middleware';
|
||||
import { getJsonBody, getIpAddress } from 'lib/request';
|
||||
import { ok, badRequest } from 'lib/response';
|
||||
import { ok, send, badRequest } from 'lib/response';
|
||||
import { createToken } from 'lib/crypto';
|
||||
import { removeTrailingSlash } from 'lib/url';
|
||||
|
||||
|
|
@ -60,5 +60,5 @@ export default async (req, res) => {
|
|||
|
||||
const token = await createToken({ website_id, session_id });
|
||||
|
||||
return ok(res, token);
|
||||
return send(res, token);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue