mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Changed import path.
This commit is contained in:
parent
a62e84f516
commit
8525188e42
365 changed files with 1277 additions and 1267 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import { z } from 'zod';
|
||||
import { unauthorized, json, notFound, ok } from 'lib/response';
|
||||
import { canDeleteTeam, canUpdateTeam, canViewTeam } from 'lib/auth';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { deleteTeam, getTeam, updateTeam } from 'queries';
|
||||
import { unauthorized, json, notFound, ok } from '@/lib/response';
|
||||
import { canDeleteTeam, canUpdateTeam, canViewTeam } from '@/lib/auth';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { deleteTeam, getTeam, updateTeam } from '@/queries';
|
||||
|
||||
export async function GET(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
|
||||
const { auth, error } = await parseRequest(request);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { z } from 'zod';
|
||||
import { unauthorized, json, badRequest, ok } from 'lib/response';
|
||||
import { canDeleteTeam, canUpdateTeam } from 'lib/auth';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { deleteTeam, getTeamUser, updateTeamUser } from 'queries';
|
||||
import { unauthorized, json, badRequest, ok } from '@/lib/response';
|
||||
import { canDeleteTeam, canUpdateTeam } from '@/lib/auth';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { deleteTeam, getTeamUser, updateTeamUser } from '@/queries';
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { z } from 'zod';
|
||||
import { unauthorized, json, badRequest } from 'lib/response';
|
||||
import { canAddUserToTeam, canUpdateTeam } from 'lib/auth';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { pagingParams, roleParam } from 'lib/schema';
|
||||
import { createTeamUser, getTeamUser, getTeamUsers } from 'queries';
|
||||
import { unauthorized, json, badRequest } from '@/lib/response';
|
||||
import { canAddUserToTeam, canUpdateTeam } from '@/lib/auth';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { pagingParams, roleParam } from '@/lib/schema';
|
||||
import { createTeamUser, getTeamUser, getTeamUsers } from '@/queries';
|
||||
|
||||
export async function GET(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
|
||||
const schema = z.object({
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { z } from 'zod';
|
||||
import { unauthorized, json } from 'lib/response';
|
||||
import { canViewTeam } from 'lib/auth';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { pagingParams } from 'lib/schema';
|
||||
import { getTeamWebsites } from 'queries';
|
||||
import { unauthorized, json } from '@/lib/response';
|
||||
import { canViewTeam } from '@/lib/auth';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { pagingParams } from '@/lib/schema';
|
||||
import { getTeamWebsites } from '@/queries';
|
||||
|
||||
export async function GET(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
|
||||
const schema = z.object({
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { z } from 'zod';
|
||||
import { unauthorized, json, badRequest, notFound } from 'lib/response';
|
||||
import { canCreateTeam } from 'lib/auth';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { ROLES } from 'lib/constants';
|
||||
import { createTeamUser, findTeam, getTeamUser } from 'queries';
|
||||
import { unauthorized, json, badRequest, notFound } from '@/lib/response';
|
||||
import { canCreateTeam } from '@/lib/auth';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { ROLES } from '@/lib/constants';
|
||||
import { createTeamUser, findTeam, getTeamUser } from '@/queries';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
const schema = z.object({
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { z } from 'zod';
|
||||
import { getRandomChars } from 'lib/crypto';
|
||||
import { unauthorized, json } from 'lib/response';
|
||||
import { canCreateTeam } from 'lib/auth';
|
||||
import { uuid } from 'lib/crypto';
|
||||
import { parseRequest } from 'lib/request';
|
||||
import { createTeam } from 'queries';
|
||||
import { getRandomChars } from '@/lib/crypto';
|
||||
import { unauthorized, json } from '@/lib/response';
|
||||
import { canCreateTeam } from '@/lib/auth';
|
||||
import { uuid } from '@/lib/crypto';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { createTeam } from '@/queries';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
const schema = z.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue