diff --git a/shard.lock b/shard.lock index 3f3f22f2..6f837bd0 100644 --- a/shard.lock +++ b/shard.lock @@ -7,7 +7,7 @@ shards: action-controller: git: https://github.com/spider-gazelle/action-controller.git - version: 7.5.0 + version: 7.5.1 active-model: git: https://github.com/spider-gazelle/active-model.git @@ -231,7 +231,7 @@ shards: placeos-core: git: https://github.com/placeos/core.git - version: 4.17.0+git.commit.5eb725ab98bf52775512f7938b468c28e6ccde45 + version: 4.17.0+git.commit.ec2fd1b2be563172b9ddc6de626870b7fd68c674 placeos-core-client: # Overridden git: https://github.com/placeos/core-client.git @@ -243,7 +243,7 @@ shards: placeos-frontend-loader: git: https://github.com/placeos/frontend-loader.git - version: 2.7.1+git.commit.a8bf2b8c4489693405e7be59eb07dd8d103d14d4 + version: 2.7.1+git.commit.0870660239fcc8dec3a75bfc4f5825df9ade9559 placeos-log-backend: git: https://github.com/place-labs/log-backend.git @@ -307,7 +307,7 @@ shards: search-ingest: git: https://github.com/placeos/search-ingest.git - version: 2.11.2+git.commit.6fc646dfeb8ef4157d35a64496d5824dbdc25659 + version: 2.11.2+git.commit.6b64206b8869d59cf5332e297004ab60713ebb1f secrets-env: # Overridden git: https://github.com/spider-gazelle/secrets-env.git diff --git a/src/placeos-rest-api/controllers/asset_types.cr b/src/placeos-rest-api/controllers/asset_types.cr index 1143482d..dfb644a1 100644 --- a/src/placeos-rest-api/controllers/asset_types.cr +++ b/src/placeos-rest-api/controllers/asset_types.cr @@ -40,7 +40,7 @@ module PlaceOS::Api ############################################################################################### # list the asset types - @[AC::Route::GET("/")] + @[AC::Route::GET("/", response_type: Array(::PlaceOS::Model::AssetType))] def index( @[AC::Param::Info(description: "return assets with the provided brand name", example: "Ford")] brand : String? = nil, @@ -104,7 +104,7 @@ module PlaceOS::Api result = PgORM::Database.connection do |db| db.query_one sql, &.read(JSON::PullParser).read_raw end - render text: result + render json: result end # show the selected asset type