Compare commits
2 Commits
b2646e5aa1
...
2bd4ab9e6e
Author | SHA1 | Date | |
---|---|---|---|
|
2bd4ab9e6e | ||
|
4afc641ecd |
@ -12,13 +12,13 @@ import (
|
|||||||
|
|
||||||
func NoMethod() gin.HandlerFunc {
|
func NoMethod() gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
c.AbortWithError(http.StatusNotFound, nil)
|
c.AbortWithStatus(http.StatusNotFound)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NoRoute() gin.HandlerFunc {
|
func NoRoute() gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
c.AbortWithError(http.StatusNotFound, nil)
|
c.AbortWithStatus(http.StatusNotFound)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
### v1.0.1
|
### v1.1.1
|
||||||
* Updated api documentation page
|
* Updated api documentation page
|
||||||
* Updated README.md
|
* Updated README.md
|
||||||
|
|
||||||
|
### v1.1.2
|
||||||
|
* fixed issue with invalid route or method calls
|
Loading…
x
Reference in New Issue
Block a user