Move router package to server/router/ (#339)

This commit is contained in:
Jacob Floyd 2021-09-22 15:41:32 -05:00 committed by GitHub
parent 35a45b7961
commit b8f55f31e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 13 additions and 13 deletions

View file

@ -38,10 +38,10 @@ import (
"github.com/woodpecker-ci/woodpecker/cncd/pubsub" "github.com/woodpecker-ci/woodpecker/cncd/pubsub"
"github.com/woodpecker-ci/woodpecker/plugins/sender" "github.com/woodpecker-ci/woodpecker/plugins/sender"
"github.com/woodpecker-ci/woodpecker/remote" "github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/router"
"github.com/woodpecker-ci/woodpecker/router/middleware"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
woodpeckerGrpcServer "github.com/woodpecker-ci/woodpecker/server/grpc" woodpeckerGrpcServer "github.com/woodpecker-ci/woodpecker/server/grpc"
"github.com/woodpecker-ci/woodpecker/server/router"
"github.com/woodpecker-ci/woodpecker/server/router/middleware"
"github.com/woodpecker-ci/woodpecker/store" "github.com/woodpecker-ci/woodpecker/store"
"github.com/gin-gonic/contrib/ginrus" "github.com/gin-gonic/contrib/ginrus"

View file

@ -34,8 +34,8 @@ import (
"github.com/woodpecker-ci/woodpecker/store" "github.com/woodpecker-ci/woodpecker/store"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/shared" "github.com/woodpecker-ci/woodpecker/server/shared"
) )

View file

@ -21,7 +21,7 @@ import (
"strings" "strings"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/woodpecker-ci/woodpecker/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/store" "github.com/woodpecker-ci/woodpecker/store"
) )

View file

@ -18,8 +18,8 @@ import (
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View file

@ -25,8 +25,8 @@ import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote" "github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/shared/token" "github.com/woodpecker-ci/woodpecker/shared/token"
"github.com/woodpecker-ci/woodpecker/store" "github.com/woodpecker-ci/woodpecker/store"
) )

View file

@ -18,8 +18,8 @@ import (
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View file

@ -25,8 +25,8 @@ import (
"github.com/woodpecker-ci/woodpecker/cncd/logging" "github.com/woodpecker-ci/woodpecker/cncd/logging"
"github.com/woodpecker-ci/woodpecker/cncd/pubsub" "github.com/woodpecker-ci/woodpecker/cncd/pubsub"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/store" "github.com/woodpecker-ci/woodpecker/store"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

View file

@ -26,7 +26,7 @@ import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote" "github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/shared" "github.com/woodpecker-ci/woodpecker/server/shared"
"github.com/woodpecker-ci/woodpecker/shared/token" "github.com/woodpecker-ci/woodpecker/shared/token"
"github.com/woodpecker-ci/woodpecker/store" "github.com/woodpecker-ci/woodpecker/store"

View file

@ -18,7 +18,7 @@ import (
"time" "time"
"github.com/woodpecker-ci/woodpecker/remote" "github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/store" "github.com/woodpecker-ci/woodpecker/store"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

View file

@ -20,12 +20,12 @@ import (
"github.com/dimfeld/httptreemux" "github.com/dimfeld/httptreemux"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/woodpecker-ci/woodpecker/router/middleware/header"
"github.com/woodpecker-ci/woodpecker/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/router/middleware/token"
"github.com/woodpecker-ci/woodpecker/server/api" "github.com/woodpecker-ci/woodpecker/server/api"
"github.com/woodpecker-ci/woodpecker/server/api/debug" "github.com/woodpecker-ci/woodpecker/server/api/debug"
"github.com/woodpecker-ci/woodpecker/server/api/metrics" "github.com/woodpecker-ci/woodpecker/server/api/metrics"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/header"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/token"
"github.com/woodpecker-ci/woodpecker/server/web" "github.com/woodpecker-ci/woodpecker/server/web"
) )