Skip to content

Commit

Permalink
Docs: compact api.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
85 authored May 1, 2020
1 parent f0047dd commit 0e3fd6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ __Notes__:
group:
prefix: api/v1
middleware:
- "api"
- api
namespace: App\Http\Controllers\Api
paths:
"users":
Expand Down Expand Up @@ -114,6 +114,12 @@ class AppServiceProvider extends ServiceProvider
If you're not using any route options (`as`, etc...), you can use a "compact" syntax to specify your controllers:

```yaml
group:
prefix: api/v1
middleware:
- api
namespace: App\Http\Controllers\Api
paths:
"users":
get: user.index
post: user.store
Expand Down

0 comments on commit 0e3fd6a

Please sign in to comment.