express.js 준비

This commit is contained in:
2023-08-06 13:53:12 +00:00
parent 691f5e79ce
commit 69de10642e
4 changed files with 20 additions and 36 deletions
+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;