refactor: 💡 Return all storage buckets from mirage (#135)

This commit is contained in:
Zhihe Li authored and GitHub committed 2023-03-21 12:53:05 -04:00
1 parent a829727b1b
commit 3d6d474bd7
1 file changed
+1 -6
+1 -6
View File
@@ -658,12 +658,7 @@ function routes() {
});
// storage-buckets
this.get(
'/storage-buckets',
({ storageBuckets }, { queryParams: { scope_id: scopeId } }) => {
return storageBuckets.where({ scopeId });
}
);
this.get('/storage-buckets');
this.get('/storage-buckets/:id');
this.del('/storage-buckets/:id');
this.patch('/storage-buckets/:id');