1
0
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:
Gerasimos (Makis) Maropoulos
2022-03-28 14:00:26 +03:00
parent 45d693850b
commit cf36063adf
33 changed files with 1805 additions and 67 deletions

View File

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