{
  "name": "scorpiox-wiki-server-native",
  "version": "1.0.1",
  "description": "Personal Wikipedia Server native C openZIM reader + Markdown-notes CGI route handlers hosted by scorpiox-server.dll. v1.0.1 adds the markdown-mode path containment gate (P0 traversal + symlink escape fix, audit 2026-09-22).",
  "handlers": [
    { "name": "_fallback", "route": "*", "methods": ["GET"], "description": "Universal router: /wiki/{title}, /search, /random, /I/{image}, / — dispatches to the matching handler" },
    { "name": "index", "route": "/", "methods": ["GET"], "description": "Dashboard: ZIM archive stats or markdown notes list (?format=json)" },
    { "name": "wiki", "route": "/wiki/{title}", "methods": ["GET"], "description": "Article view (ZIM or markdown note) with skin, link rewriting, JSON mode; 404 on missing or unsafe paths" },
    { "name": "search", "route": "/search?q={query}", "methods": ["GET"], "description": "Title/URL prefix search over ZIM entries or markdown note names (JSON mode)" },
    { "name": "random", "route": "/random", "methods": ["GET"], "description": "302 redirect to a random article" },
    { "name": "image", "route": "/I/{image_path}", "methods": ["GET"], "description": "Binary asset streamer; markdown mode enforces notes-root containment (notes_path gate)" }
  ],
  "engine": "scorpiox-wiki-engine.dll / scorpiox-wiki-engine.so",
  "tools": ["zim_create", "zim_test (15/15 unit tests incl. security containment)"],
  "host": "scorpiox-server.dll"
}
