return 404 for non-implemented api calls

This commit is contained in:
KOUNOIKE Yuusuke
2017-02-04 16:14:23 +09:00
parent fd8add4fcd
commit 306c9e45be

View File

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