si table connected to backend

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-06 21:04:04 +05:00
parent b66bf9dafe
commit 3dd9157346
7 changed files with 270 additions and 107 deletions

View File

@@ -9,7 +9,7 @@ import { getRouteLang } from './getLanguage';
// ─── Constants ─────────────────────────────────────────────────────────────────
// const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
const baseUrl = 'https://api.anti-plagiat.uz/api/v1';
const baseUrl = 'https://dev-api.anti-plagiat.uz/api/v1';
const DEFAULT_LOCALE = 'uz'; // fallback locale for redirect
// ─── Token helpers ─────────────────────────────────────────────────────────────

View File

@@ -7,4 +7,8 @@ export const links = {
payment: (order_id: number) => `/users/payme/link/${order_id}/`,
sertifikat: (document_id: number) =>
`/shared/certificate/${document_id}/pdf/`,
si: '/shared/ai_document/list/',
si_id: (si_id: number) => `/shared/ai_document/list/${si_id}/`,
si_payment: (document_id: number) => `/shared/ai_document/pay/${document_id}`,
si_create: '/shared/ai_document/create/',
};