Skip to content

Commit

Permalink
Merge pull request #98 from hmrc/GG-7233-patch
Browse files Browse the repository at this point in the history
GG-7233-patch updated documentation and controller
  • Loading branch information
AadilAkhtar authored Aug 18, 2023
2 parents 4bef234 + a4b1f9e commit fb1e85e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/DocumentationController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ class DocumentationController @Inject() (errorHandler: HttpErrorHandler, appCont
val versions = APIAccessVersions(appContext.access)
Ok(txt.definition(versions.versions.getOrElse(List()))).withHeaders("Content-Type" -> "application/json")
}

def ramlDocs(version: String, filename: String): Action[AnyContent] = {
assets.at(s"/public/api/conf/$version", filename)
}
}
1 change: 1 addition & 0 deletions conf/definition.routes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
GET /api/definition @controllers.DocumentationController.definition()
GET /api/conf/:version/*filename @controllers.DocumentationController.ramlDocs(version, filename)

0 comments on commit fb1e85e

Please sign in to comment.