ylletjs/wp-rest-api-routes

通过REST API暴露重写规则

v1.0.0 2018-03-02 08:48 UTC

This package is auto-updated.

Last update: 2024-08-27 16:55:00 UTC


README

Build Status

通过REST API暴露重写规则。

新端点

/wp-json/wp/v2/routes

示例响应

[
  {
	  "path": "^wp-json\/?$",
	  "type": "unknown"
  },
  {
	  "path": "^wp-json\/(.*)?",
	  "type": "unknown"
  },
  {
	  "path": "^index.php\/wp-json\/?$",
	  "type": "unknown"
  },
  {
	  "path": "^index.php\/wp-json\/(.*)?",
	  "type": "unknown"
  },
  {
	  "path": "blog\/category\/(.+?)\/feed\/(feed|rdf|rss|rss2|atom)\/?$",
	  "type": "category"
  },
  {
	  "path": "blog\/category\/(.+?)\/(feed|rdf|rss|rss2|atom)\/?$",
	  "type": "category"
  }
]

安装

composer require ylletjs/wp-rest-api-routes

许可证

MIT © Fredrik Forsmo