1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-27 23:07:03 +00:00

versioning API: initialize support for grouping

Former-commit-id: 36cf8cd79801e8556f3c7b560f3bd759d9770d67
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-11-10 23:29:24 +02:00
parent b22a18da6b
commit 7608873e70
6 changed files with 314 additions and 28 deletions

View File

@@ -27,8 +27,9 @@ var NotFoundHandler = func(ctx context.Context) {
This is the appropriate response when the server does not
recognize the request method and is not capable of supporting it for any resource.
*/
ctx.WriteString("version not found")
ctx.StatusCode(501)
ctx.WriteString("version not found")
}
func GetVersion(ctx context.Context) string {