mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-04 14:50:02 +01:00
Merge pull request #1445 from kounoike/pr-404
404 for non-implemented api
This commit is contained in:
@@ -59,6 +59,13 @@ trait ApiControllerBase extends ControllerBase {
|
||||
with ReadableUsersAuthenticator
|
||||
with WritableUsersAuthenticator =>
|
||||
|
||||
/**
|
||||
* 404 for non-implemented api
|
||||
*/
|
||||
get("/api/v3/*") {
|
||||
NotFound()
|
||||
}
|
||||
|
||||
/**
|
||||
* https://developer.github.com/v3/#root-endpoint
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user