express.js 준비

This commit is contained in:
Hide_D committed 2023-08-06 13:53:12 +00:00
1 parent 691f5e79ce
commit 69de10642e
4 files changed
+20 -36

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import type { APITail, RawArgType } from "../apiStructure/defs";
import { structure } from "../apiStructure/sammoRootAPI";
import { callClientAPI } from "./generator";
const apiRoot = process.env.API_ROOT_PATH ?? process.env.VITE_API_ROOT_PATH ?? '/api';
const apiRoot = process.env.API_ROOT_PATH ?? process.env.VITE_API_ROOT_PATH ?? '/rootAPI';
export const SammoRootAPI = APIPathGen(structure, (path: string[], tail: APITail, pathParam) => {
const method = tail.reqType;