mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-03 02:53:16 +08:00
feat: Node.js 前端代理后端路由
This commit is contained in:
2
backend/src/vendor/express.js
vendored
2
backend/src/vendor/express.js
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user