feat(api): restore and update api-request module structure
This commit is contained in:
@@ -12,7 +12,7 @@ import { fileURLToPath } from 'url';
|
|||||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
const rootDir = resolve(__dirname, '..');
|
const rootDir = resolve(__dirname, '..');
|
||||||
|
|
||||||
const templatePath = resolve(rootDir, 'src/utils/api-request.ts');
|
const templatePath = resolve(rootDir, 'src/lib/api-request.ts');
|
||||||
const targetPath = resolve(rootDir, 'src/api/request.ts');
|
const targetPath = resolve(rootDir, 'src/api/request.ts');
|
||||||
|
|
||||||
console.log('🔄 Restoring request.ts after openapi generation...');
|
console.log('🔄 Restoring request.ts after openapi generation...');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { hostApiFetch } from '@/lib/host-api';
|
import { hostApiFetch } from '@src/lib/host-api';
|
||||||
|
|
||||||
interface RequestOptions {
|
interface RequestOptions {
|
||||||
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { hostApiFetch } from '@/lib/host-api';
|
import { hostApiFetch } from '@src/lib/host-api';
|
||||||
|
|
||||||
interface RequestOptions {
|
interface RequestOptions {
|
||||||
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
||||||
Reference in New Issue
Block a user