rename ngin to rest
This commit is contained in:
@@ -3,12 +3,16 @@ package rest
|
||||
import "net/http"
|
||||
|
||||
type (
|
||||
Middleware func(next http.HandlerFunc) http.HandlerFunc
|
||||
|
||||
Route struct {
|
||||
Method string
|
||||
Path string
|
||||
Handler http.HandlerFunc
|
||||
}
|
||||
|
||||
RouteOption func(r *featuredRoutes)
|
||||
|
||||
jwtSetting struct {
|
||||
enabled bool
|
||||
secret string
|
||||
@@ -26,6 +30,4 @@ type (
|
||||
signature signatureSetting
|
||||
routes []Route
|
||||
}
|
||||
|
||||
RouteOption func(r *featuredRoutes)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user