Skip to content

Commit

Permalink
[*] update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shayvmo committed May 23, 2024
1 parent 320e6a3 commit c4ecb07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ class ATest

- v1.2.0

2024-05-23,增加中间件忽略注解
2024-05-23,增加中间件忽略注解`MiddlewareIgnore`

- v1.1.1

2023-04-11,修复发现的RequestMapping解析allow_methods问题
2023-04-11,修复发现的`RequestMapping`解析`allow_methods`问题

- v1.1.0

Expand Down
8 changes: 4 additions & 4 deletions src/config/plugin/shayvmo/webman-annotations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ use Shayvmo\WebmanAnnotations\Annotations\RestController;

- `@RestController("/a")`
- `@RestController(prefix="/a")`

php8注解
- `#[RestController("/test1")]`
- `#[RestController(path: "/test2")]`
Expand All @@ -129,7 +129,7 @@ use Shayvmo\WebmanAnnotations\Annotations\ResourceMapping;
`path`传参可以省略键名。

- `@ResourceMapping(path="/dddd", allow_methods={"index", "show"})`
- `@ResourceMapping("/dddd", allow_methods={"index", "show"})`
- `@ResourceMapping("/dddd", allow_methods={"index", "show"})`

php8注解
- `#[ResourceMapping("/test", allow_methods: ["index", "show"])]`
Expand Down Expand Up @@ -275,11 +275,11 @@ class ATest

- v1.2.0

2024-05-23,增加中间件忽略注解
2024-05-23,增加中间件忽略注解`MiddlewareIgnore`

- v1.1.1

2023-04-11,修复发现的RequestMapping解析allow_methods问题
2023-04-11,修复发现的`RequestMapping`解析`allow_methods`问题

- v1.1.0

Expand Down

0 comments on commit c4ecb07

Please sign in to comment.