Skip to content

Commit

Permalink
refactor /artefacts route code
Browse files Browse the repository at this point in the history
  • Loading branch information
imadbourouche committed Jan 23, 2025
1 parent f6aca8a commit b6128e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/artefacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ class ArtefactsController < ApplicationController
namespace "/artefacts" do
# Get all Semantic Artefacts
get do
artefacts = nil
check_last_modified_collection(LinkedData::Models::SemanticArtefact)
options = {
allow_views: params['also_include_views'] ||= false,
also_include_views: params['also_include_views'] ||= false,
includes: LinkedData::Models::SemanticArtefact.goo_attrs_to_load([])
}
artefacts = LinkedData::Models::SemanticArtefact.all_artefacts(options)
Expand Down

0 comments on commit b6128e5

Please sign in to comment.