br-routes

Community

Fluent REST routing for WordPress plugins

AuthorLonsdale201
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Registers and manages custom WordPress REST routes using BetterRoute's fluent Router, enforcing explicit intent for write endpoints and providing a clear, maintainable workflow.

Core Features & Use Cases

  • Fluent route declarations with get/post/put/patch/delete under a vendor/version namespace like vendor/v1.
  • Enforce v0.4.0 write-endpoint permissions by requiring ->permission(), ->protectedByMiddleware(), or ->publicRoute() so unauthorized write routes return 403 by design.
  • Group routes with shared middleware, route parameter resolution (URL params override query/body), and lifecycle managed inside rest_api_init with $router->register().

Quick Start

Create a router inside rest_api_init, declare routes with explicit intents, and call register() to wire them into WordPress.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: br-routes
Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#br-routes

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.