Added code for backend glue
This commit is contained in:
7
backend/internal/http/middleware.go
Normal file
7
backend/internal/http/middleware.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package http
|
||||
|
||||
import "net/http"
|
||||
|
||||
func withCommon(next http.Handler) http.Handler {
|
||||
return http.TimeoutHandler(next, 60_000_000_000, "timeout") // 60s
|
||||
}
|
||||
Reference in New Issue
Block a user