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

make the core/router.AllMethods a variable that can be changed by end-devs as requested at: https://github.com/kataras/iris/issues/1102

Former-commit-id: 47c997e0d3a90e4c7ccb8c4dfd1459065490d59e
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-10-16 05:37:21 +03:00
parent 192d71432f
commit e3876d793c
2 changed files with 11 additions and 7 deletions

View File

@@ -12,17 +12,15 @@ import (
"github.com/kataras/iris/macro"
)
const (
// MethodNone is a Virtual method
// to store the "offline" routes.
MethodNone = "NONE"
)
// MethodNone is a Virtual method
// to store the "offline" routes.
const MethodNone = "NONE"
var (
// AllMethods contains the valid http methods:
// "GET", "POST", "PUT", "DELETE", "CONNECT", "HEAD",
// "PATCH", "OPTIONS", "TRACE".
AllMethods = [...]string{
AllMethods = []string{
"GET",
"POST",
"PUT",