This commit is contained in:
丹尼尔
2026-03-10 17:29:22 +08:00
parent 36101a4405
commit 0655410134
5 changed files with 935 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import express from 'express';
import cors from 'cors';
import morgan from 'morgan';
import dotenv from 'dotenv';
import path from 'path';
import { authRouter } from './wechatAuth';
@@ -13,6 +14,9 @@ app.use(cors());
app.use(express.json());
app.use(morgan('dev'));
const publicDir = path.join(__dirname, '../public');
app.use(express.static(publicDir));
app.get('/health', (_req, res) => {
res.json({ status: 'ok' });
});