Neocon Propaganda Machine

    mock-router

    0.1.9 • Public • Published

    mock-router

    按需代理mock接口

    Usage

    npm install -g mock-router
    // rules/mini_program_v3.ms.json
    {
      "rules": {
        "rulesList": [
          {
            "type": "rap",
            "id": "472",
            "domain": "http://mock.2dfire-daily.com/mock-serverapi"
          }
        ],
        "defaultTarget": "http://api.l.whereask.com/mini_program_v3/api"
      }
    }
    mock ./rules

    Keywords

    none

    Install

    npm i mock-router

    DownloadsWeekly Downloads

    2

    Version

    0.1.9

    License

    ISC

    Unpacked Size

    4.79 kB

    Total Files

    6

    Last publish

    Collaborators

    • x_xsp