Linting middlewares package
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
7766d0ddaa
commit
9387235a04
4 changed files with 11 additions and 15 deletions
|
@ -1,6 +1,3 @@
|
|||
/*
|
||||
Copyright
|
||||
*/
|
||||
package middlewares
|
||||
|
||||
import (
|
||||
|
@ -11,10 +8,12 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
// Routes holds the gorilla mux routes (for the API & co).
|
||||
type Routes struct {
|
||||
router *mux.Router
|
||||
}
|
||||
|
||||
// NewRoutes return a Routes based on the given router.
|
||||
func NewRoutes(router *mux.Router) *Routes {
|
||||
return &Routes{router}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue