add 404 for post/put/delete/patch. see #1445

This commit is contained in:
KOUNOIKE
2018-10-07 11:59:35 +09:00
parent 6ac7429f66
commit cd49e9b25a

View File

@@ -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