chore: RouterParams not needed
This commit is contained in:
parent
150c5c6cb2
commit
055f502114
|
@ -1,17 +1,10 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.lumeweb.com/LumeWeb/gitea-github-proxy/config"
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"go.uber.org/fx"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type RouterParams struct {
|
func NewRouter() *mux.Router {
|
||||||
fx.In
|
|
||||||
Config *config.Config
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewRouter(params RouterParams) *mux.Router {
|
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
|
|
||||||
return r
|
return r
|
||||||
|
|
Loading…
Reference in New Issue