go-drip: v1.0.1 - added router getter in drip app
This commit is contained in:
parent
2ad390c1c1
commit
89ccb60698
4
drip.go
4
drip.go
@ -53,6 +53,10 @@ func (d *Drip) StartTLS(listenAddr, certFile, keyFile string) error {
|
||||
return http.ListenAndServeTLS(listenAddr, certFile, keyFile, d.router)
|
||||
}
|
||||
|
||||
func (d *Drip) Router() *httprouter.Router {
|
||||
return d.router
|
||||
}
|
||||
|
||||
func (d *Drip) SetErrorHandler(errorHandler ErrorHandler) {
|
||||
d.errorHandler = errorHandler
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user