Commit 958059563ff41cee6ad436a2cc5d145e53a38b1f
1 parent
cf9fb432
add resource
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/library/App/Bootstrap/CollectionBootstrap.php
@@ -4,6 +4,7 @@ namespace App\Bootstrap; | @@ -4,6 +4,7 @@ namespace App\Bootstrap; | ||
4 | 4 | ||
5 | use App\BootstrapInterface; | 5 | use App\BootstrapInterface; |
6 | use App\Collections\ExportCollection; | 6 | use App\Collections\ExportCollection; |
7 | +use App\Resources\ProjectResource; | ||
7 | use App\Resources\UserResource; | 8 | use App\Resources\UserResource; |
8 | use App\Resources\AlbumResource; | 9 | use App\Resources\AlbumResource; |
9 | use App\Resources\PhotoResource; | 10 | use App\Resources\PhotoResource; |
@@ -19,6 +20,7 @@ class CollectionBootstrap implements BootstrapInterface | @@ -19,6 +20,7 @@ class CollectionBootstrap implements BootstrapInterface | ||
19 | ->collection(new ExportCollection('/export')) | 20 | ->collection(new ExportCollection('/export')) |
20 | ->resource(new UserResource('/users')) | 21 | ->resource(new UserResource('/users')) |
21 | ->resource(new AlbumResource('/albums')) | 22 | ->resource(new AlbumResource('/albums')) |
22 | - ->resource(new PhotoResource('/photos')); | 23 | + ->resource(new PhotoResource('/photos')) |
24 | + ->resource(new ProjectResource('/projects')); | ||
23 | } | 25 | } |
24 | } | 26 | } |