mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
Rename caddy2 -> caddy
Removes the version from the package name
This commit is contained in:
parent
b8e7453fef
commit
5137859e47
48 changed files with 199 additions and 193 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/caddyserver/caddy2"
|
||||
"github.com/caddyserver/caddy"
|
||||
)
|
||||
|
||||
// ServerRoute represents a set of matching rules,
|
||||
|
@ -56,7 +56,7 @@ func (mset MatcherSet) Match(r *http.Request) bool {
|
|||
type RouteList []ServerRoute
|
||||
|
||||
// Provision sets up all the routes by loading the modules.
|
||||
func (routes RouteList) Provision(ctx caddy2.Context) error {
|
||||
func (routes RouteList) Provision(ctx caddy.Context) error {
|
||||
for i, route := range routes {
|
||||
// matchers
|
||||
for _, matcherSet := range route.MatcherSets {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue