Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
exposes the mux.Router on the application (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates authored Oct 11, 2018
1 parent cea9617 commit 63f518e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ type App struct {
filepaths []string
}

// Muxer returns the underlying mux router to allow
// for advance configurations
func (a *App) Muxer() *mux.Router {
return a.router
}

// New returns a new instance of App and adds some sane, and useful, defaults.
func New(opts Options) *App {
events.LoadPlugins()
Expand Down

0 comments on commit 63f518e

Please sign in to comment.