mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
Add normalizeBasePath + wrapBasePath to Server so the UI and API can be served under a URL prefix (e.g. /app). StripPrefix wraps outside withConfigAutoReload; bare-path requests redirect to path + "/". Dev mode (no uiDistDir) prints a warning and skips wrapping. Includes HTTP routing tests for prefix routing, 404 without prefix, bare-path redirect, multi-level paths, and empty basePath passthrough.