fix: remove api imports

This commit is contained in:
TrèsAbhi committed 2024-09-08 09:46:29 -05:00
1 parent 636c54aa36
commit 25cfb7db74
2 files changed
+11 -11

No files matched your search

@@ -1,4 +1,8 @@
import { tankDefinitions, usersDatabase } from '@blitzkit/core';
import {
TANK_VOTE_CATEGORIES,
TankVoteCategory,
} from '@blitzkit/core/src/blitzkit/votes';
import { NextRequest, NextResponse } from 'next/server';
import { StarsInt } from '../../../../../../website/src/app/tools/tankopedia/[id]/components/Model/MetaSection/components/Stars';
import { isValidBlitzId } from '../../../../../../website/src/core/blitz/isValidBlitzId';
@@ -7,15 +11,6 @@ import {
BlitzkitResponseError,
} from '../../../../../../website/src/hooks/useTankVotes';
export const TANK_VOTE_CATEGORIES = [
'easiness',
'firepower',
'maneuverability',
'survivability',
];
export type TankVoteCategory = (typeof TANK_VOTE_CATEGORIES)[number];
export async function GET(
request: NextRequest,
{ params }: { params: { id: string } },
+7 -2
View File
@@ -1,7 +1,12 @@
import { TankVoteCategory } from '../../../api/src/app/tank-voting/[id]/cast/route';
export interface TankVotes {
categories: Record<TankVoteCategory, number | null>;
votes: number;
last_updated?: number;
}
export const TANK_VOTE_CATEGORIES = [
'easiness',
'firepower',
'maneuverability',
'survivability',
];
export type TankVoteCategory = (typeof TANK_VOTE_CATEGORIES)[number];