2023-12-07 12:29:57 +03:00
|
|
|
package bond
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Request = http.Request
|
|
|
|
type ResponseWriter = http.ResponseWriter
|
|
|
|
type HandlerFunc = http.HandlerFunc
|
|
|
|
type Handler = http.Handler
|
|
|
|
type Server = http.Server
|
|
|
|
|
2023-12-07 13:22:11 +03:00
|
|
|
func Static(pth string) Handler {
|
|
|
|
return http.FileServer(http.Dir(pth))
|
|
|
|
}
|