feat: Node.js 前端代理后端路由

This commit is contained in:
xream
2023-12-12 22:52:50 +08:00
parent 5e21a20e37
commit 78e3024cec
4 changed files with 87 additions and 13 deletions

View File

@@ -2,8 +2,6 @@
import { ENV } from './open-api';
export default function express({ substore: $, port, host }) {
port = port || 3000;
host = host || '::';
const { isNode } = ENV();
const DEFAULT_HEADERS = {
'Content-Type': 'text/plain;charset=UTF-8',