@fatdoge/wtree 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,9 @@ export async function startUiDevServer(options: {
63
63
  const combinedApp = express()
64
64
 
65
65
  // 1. API routes
66
- combinedApp.use('/api', createApiApp(() => repoRoot))
66
+ // The createApiApp returns an app that already handles /api routes.
67
+ // We should mount it at root, so requests to /api/xxx are handled correctly.
68
+ combinedApp.use(createApiApp(() => repoRoot))
67
69
 
68
70
  // 2. Static files
69
71
  combinedApp.use(serveStatic(distPath))
@@ -43,7 +43,9 @@ export async function startUiDevServer(options) {
43
43
  // Let's rewrite the logic to use a single server for both API and UI
44
44
  const combinedApp = express();
45
45
  // 1. API routes
46
- combinedApp.use('/api', createApiApp(() => repoRoot));
46
+ // The createApiApp returns an app that already handles /api routes.
47
+ // We should mount it at root, so requests to /api/xxx are handled correctly.
48
+ combinedApp.use(createApiApp(() => repoRoot));
47
49
  // 2. Static files
48
50
  combinedApp.use(serveStatic(distPath));
49
51
  // 3. SPA fallback
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fatdoge/wtree",
3
3
  "private": false,
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "description": "CLI + UI tool for managing git worktrees",
6
6
  "keywords": [
7
7
  "git",