mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
first release of SSO package and more examples
This commit is contained in:
@@ -39,6 +39,13 @@ var AllMethods = []string{
|
||||
http.MethodTrace,
|
||||
}
|
||||
|
||||
// RegisterMethods adds custom http methods to the "AllMethods" list.
|
||||
// Use it on initialization of your program.
|
||||
func RegisterMethods(newCustomHTTPVerbs ...string) {
|
||||
newMethods := append(AllMethods, newCustomHTTPVerbs...)
|
||||
AllMethods = removeDuplicates(newMethods)
|
||||
}
|
||||
|
||||
// repository passed to all parties(subrouters), it's the object witch keeps
|
||||
// all the routes.
|
||||
type repository struct {
|
||||
|
||||
Reference in New Issue
Block a user