mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Changed import path.
This commit is contained in:
parent
a62e84f516
commit
8525188e42
365 changed files with 1277 additions and 1267 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import { z } from 'zod';
|
||||
import { checkPassword } from 'lib/auth';
|
||||
import { createSecureToken } from 'lib/jwt';
|
||||
import { checkPassword } from '@/lib/auth';
|
||||
import { createSecureToken } from '@/lib/jwt';
|
||||
import { redisEnabled } from '@umami/redis-client';
|
||||
import { getUserByUsername } from 'queries';
|
||||
import { json, unauthorized } from 'lib/response';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { saveAuth } from 'lib/auth';
|
||||
import { secret } from 'lib/crypto';
|
||||
import { ROLES } from 'lib/constants';
|
||||
import { getUserByUsername } from '@/queries';
|
||||
import { json, unauthorized } from '@/lib/response';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { saveAuth } from '@/lib/auth';
|
||||
import { secret } from '@/lib/crypto';
|
||||
import { ROLES } from '@/lib/constants';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
const schema = z.object({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { getClient, redisEnabled } from '@umami/redis-client';
|
||||
import { ok } from 'lib/response';
|
||||
import { ok } from '@/lib/response';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
if (redisEnabled) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { redisEnabled } from '@umami/redis-client';
|
||||
import { json } from 'lib/response';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { saveAuth } from 'lib/auth';
|
||||
import { json } from '@/lib/response';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { saveAuth } from '@/lib/auth';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
const { auth, error } = await parseRequest(request);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { parseRequest } from 'lib/request';
|
||||
import { json } from 'lib/response';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { json } from '@/lib/response';
|
||||
|
||||
export async function GET(request: Request) {
|
||||
const { auth, error } = await parseRequest(request);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue