Skip to content

Commit 3a9e4dc

Browse files
author
Coderian
authored
Update server.go
1 parent 36ea6c7 commit 3a9e4dc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

server.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
type Server struct {
1111
router *Router
1212
notFound HandlerFunc
13-
middlewares []HandlerFunc
1413
}
1514

1615
func NewServer() *Server {
@@ -25,10 +24,6 @@ func NewServer() *Server {
2524
return s
2625
}
2726

28-
func (s *Server) Middleware(mw HandlerFunc) {
29-
s.middlewares = append(s.middlewares, mw)
30-
}
31-
3227
func (s *Server) Handle(path string, handler HandlerFunc) {
3328
s.router.Handle(path, handler)
3429
}

0 commit comments

Comments
 (0)