mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 05:55:51 +01:00
Add action which returns the file content in the wiki repository.
This commit is contained in:
@@ -146,6 +146,15 @@ trait WikiControllerBase extends ControllerBase {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
get("/:owner/:repository/wiki/_blob/*")(readableRepository {
|
||||||
|
val owner = params("owner")
|
||||||
|
val repository = params("repository")
|
||||||
|
val path = multiParams("splat").head
|
||||||
|
|
||||||
|
contentType = "application/octet-stream"
|
||||||
|
getFileContent(owner, repository, path).get
|
||||||
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constraint for the wiki page name.
|
* Constraint for the wiki page name.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user