Skip to content

Commit

Permalink
Makes it available only in v0.0.4 and Path changed to filename
Browse files Browse the repository at this point in the history
  • Loading branch information
spell00 committed Nov 4, 2020
1 parent 83903b7 commit 51b1169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/project/dicoms.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Dicoms extends Endpoint implements \LORIS\Middleware\ETagCalculator
*/
protected function supportedVersions() : array
{
return ["v0.0.3"];
return ["v0.0.4"];
}

/**
Expand Down
4 changes: 2 additions & 2 deletions modules/api/php/models/projectdicomsobject.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ProjectDicomsObject implements \LORIS\Data\DataInstance
public function jsonSerialize() : array
{
$obj = get_object_vars($this);
$obj['Path'] = explode('/', $obj['Archive'])[1];
$obj['FileName'] = basename('/', $obj['Archive']);
return $obj;
}
}
}

0 comments on commit 51b1169

Please sign in to comment.