go-drip: v1.0.1 - added router getter in drip app

This commit is contained in:
Timo Riegebauer 2025-04-26 07:54:41 +00:00
parent 2ad390c1c1
commit 89ccb60698

View File

@ -53,6 +53,10 @@ func (d *Drip) StartTLS(listenAddr, certFile, keyFile string) error {
return http.ListenAndServeTLS(listenAddr, certFile, keyFile, d.router) return http.ListenAndServeTLS(listenAddr, certFile, keyFile, d.router)
} }
func (d *Drip) Router() *httprouter.Router {
return d.router
}
func (d *Drip) SetErrorHandler(errorHandler ErrorHandler) { func (d *Drip) SetErrorHandler(errorHandler ErrorHandler) {
d.errorHandler = errorHandler d.errorHandler = errorHandler
} }