Skip to content

Commit

Permalink
refactor: move get daytona script to common (#1197)
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <[email protected]>
  • Loading branch information
Tpuljak authored Oct 4, 2024
1 parent f115485 commit 44dfd61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/api/controllers/binary/get_daytona.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"net/url"

"github.com/daytonaio/daytona/internal/constants"
"github.com/daytonaio/daytona/pkg/common"
"github.com/gin-gonic/gin"
)

Expand All @@ -20,7 +20,7 @@ func GetDaytonaScript(ctx *gin.Context) {
}

downloadUrl, _ := url.JoinPath(fmt.Sprintf("%s://%s", scheme, ctx.Request.Host), "binary")
getServerScript := constants.GetDaytonaScript(downloadUrl)
getServerScript := common.GetDaytonaScript(downloadUrl)

ctx.String(http.StatusOK, getServerScript)
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Daytona Platforms Inc.
// SPDX-License-Identifier: Apache-2.0

package constants
package common

import (
"strings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2024 Daytona Platforms Inc.
// SPDX-License-Identifier: Apache-2.0

package constants
package common

import (
"testing"
Expand Down

0 comments on commit 44dfd61

Please sign in to comment.