kinaiok commited on
Commit Β·
5bb6afa
1
Parent(s): 43ef8b7
fix: correct frontend dist path to dist/public
Browse files
artifacts/api-server/src/app.ts
CHANGED
|
@@ -47,7 +47,7 @@ app.use("/v1", openaiRouter);
|
|
| 47 |
app.use("/api/v1", openaiRouter);
|
| 48 |
|
| 49 |
// ζδΎεη«―ιζ
ζͺζ‘
|
| 50 |
-
const frontendDistPath = path.join(__dirname, "../../image-gen/dist");
|
| 51 |
app.use(express.static(frontendDistPath));
|
| 52 |
|
| 53 |
// SPA fallback - ζζι API θ·―η±ι½θΏε index.html
|
|
|
|
| 47 |
app.use("/api/v1", openaiRouter);
|
| 48 |
|
| 49 |
// ζδΎεη«―ιζ
ζͺζ‘
|
| 50 |
+
const frontendDistPath = path.join(__dirname, "../../image-gen/dist/public");
|
| 51 |
app.use(express.static(frontendDistPath));
|
| 52 |
|
| 53 |
// SPA fallback - ζζι API θ·―η±ι½θΏε index.html
|