add: some user api and all api desc
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// Code scaffolded by goctl. Safe to edit.
|
||||
// goctl 1.9.2
|
||||
|
||||
package middleware
|
||||
|
||||
import "net/http"
|
||||
|
||||
type JwtAuthMiddleware struct {
|
||||
}
|
||||
|
||||
func NewJwtAuthMiddleware() *JwtAuthMiddleware {
|
||||
return &JwtAuthMiddleware{}
|
||||
}
|
||||
|
||||
func (m *JwtAuthMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
// TODO generate middleware implement function, delete after code implementation
|
||||
|
||||
// Passthrough to next handler if need
|
||||
next(w, r)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user