Skip to content

btp.Router

meta-d edited this page Mar 6, 2024 · 1 revision

Router

App Router

原配置

{
  "welcomeFile": "blp/index.html",
  "routes": [
    {
      "source": "^/blp/(.*)$",
      "target": "$1",
      "localDir": "./blp",
      "cacheControl": "no-cache, no-store, must-revalidate"
    },
    {
      "source": "^/appconfig/",
      "localDir": ".",
      "cacheControl": "no-cache, no-store, must-revalidate"
    },
    {
      "source": "^/api/(.*)$",
      "target": "$1",
      "destination": "srv-api",
      "csrfProtection": true
    }
  ]
}