Skip to content

Commit

Permalink
Fixes #17338: When defining a category for a new technique, the files…
Browse files Browse the repository at this point in the history
… are not placed on the correct path in the git repo
  • Loading branch information
VinceMacBuche committed May 7, 2020
1 parent 56cd9ac commit 4aba08d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -338,7 +338,7 @@ class NcfApi(

def process0(version: ApiVersion, path: ApiPath, req: Req, params: DefaultParams, authzToken: AuthzToken): LiftResponse = {
val response=
JObject(techniqueRepository.getAllCategories.toList.filter(_._1.name.value != "/").map(c => JField(c._1.name.value,JString(c._2.name))))
JObject(techniqueRepository.getAllCategories.toList.filter(_._1.name.value != "/").map(c => JField(c._1.getPathFromRoot.tail.map(_.value).mkString("/"),JString(c._2.name))))

resp(Full(response), req, "Could not get generic methods metadata")("getMethods")

Expand Down

0 comments on commit 4aba08d

Please sign in to comment.