mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 16:46:54 +02:00
add 404 for post/put/delete/patch. see #1445
This commit is contained in:
@@ -45,6 +45,18 @@ trait ApiControllerBase extends ControllerBase {
|
||||
get("/api/v3/*") {
|
||||
NotFound()
|
||||
}
|
||||
post("/api/v3/*") {
|
||||
NotFound()
|
||||
}
|
||||
put("/api/v3/*") {
|
||||
NotFound()
|
||||
}
|
||||
delete("/api/v3/*") {
|
||||
NotFound()
|
||||
}
|
||||
patch("/api/v3/*") {
|
||||
NotFound()
|
||||
}
|
||||
|
||||
/**
|
||||
* https://developer.github.com/v3/#root-endpoint
|
||||
|
||||
Reference in New Issue
Block a user