diff --git a/database/database.go b/database/database.go index eab25cd..bd7cb56 100644 --- a/database/database.go +++ b/database/database.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/go-fast-cdn/models" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/models" + "github.com/kevinanielsen/go-fast-cdn/util" "gorm.io/driver/sqlite" "gorm.io/gorm" ) diff --git a/database/doc.go b/database/doc.go index 6c23451..ee1032c 100644 --- a/database/doc.go +++ b/database/doc.go @@ -1,7 +1,7 @@ package database import ( - "github.com/go-fast-cdn/models" + "github.com/kevinanielsen/go-fast-cdn/models" ) func AddDoc(fileName string, fileHashBuffer []byte) (string, bool) { diff --git a/database/image.go b/database/image.go index 89a7679..86959bc 100644 --- a/database/image.go +++ b/database/image.go @@ -1,7 +1,7 @@ package database import ( - "github.com/go-fast-cdn/models" + "github.com/kevinanielsen/go-fast-cdn/models" ) func AddImage(fileName string, fileHashBuffer []byte) (string, bool) { diff --git a/database/migrate.go b/database/migrate.go index 7c1fc4b..b11d2cc 100644 --- a/database/migrate.go +++ b/database/migrate.go @@ -1,6 +1,6 @@ package database -import "github.com/go-fast-cdn/models" +import "github.com/kevinanielsen/go-fast-cdn/models" func Migrate() { DB.AutoMigrate(&models.Image{}, &models.Doc{}) diff --git a/go.mod b/go.mod index 712a383..0c25d5d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-fast-cdn +module github.com/kevinanielsen/go-fast-cdn go 1.21.2 diff --git a/handlers/db/handleDropDB.go b/handlers/db/handleDropDB.go index 7e74ffe..0f5b6f7 100644 --- a/handlers/db/handleDropDB.go +++ b/handlers/db/handleDropDB.go @@ -5,8 +5,8 @@ import ( "os" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/models" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/models" ) func HandleDropDB(c *gin.Context) { diff --git a/handlers/docs/handleAllDocs.go b/handlers/docs/handleAllDocs.go index b783359..16c86e3 100644 --- a/handlers/docs/handleAllDocs.go +++ b/handlers/docs/handleAllDocs.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/models" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/models" ) func HandleAllDocs(c *gin.Context) { diff --git a/handlers/docs/handleDocDelete.go b/handlers/docs/handleDocDelete.go index ebae288..52a56a4 100644 --- a/handlers/docs/handleDocDelete.go +++ b/handlers/docs/handleDocDelete.go @@ -4,10 +4,11 @@ import ( "net/http" "fmt" - "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/util" "os" + + "github.com/gin-gonic/gin" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/util" ) func HandleDocDelete(c *gin.Context) { diff --git a/handlers/docs/handleDocUpload.go b/handlers/docs/handleDocUpload.go index e044ea7..8ee6cd9 100644 --- a/handlers/docs/handleDocUpload.go +++ b/handlers/docs/handleDocUpload.go @@ -6,8 +6,8 @@ import ( "path/filepath" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/util" ) func HandleDocUpload(c *gin.Context) { diff --git a/handlers/docs/handleDocsRename.go b/handlers/docs/handleDocsRename.go index 09e645c..4376f63 100644 --- a/handlers/docs/handleDocsRename.go +++ b/handlers/docs/handleDocsRename.go @@ -6,8 +6,8 @@ import ( "path/filepath" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/util" ) func HandleDocsRename(c *gin.Context) { diff --git a/handlers/getSizeHandler.go b/handlers/getSizeHandler.go index b505848..94ec20e 100644 --- a/handlers/getSizeHandler.go +++ b/handlers/getSizeHandler.go @@ -7,7 +7,7 @@ import ( "path/filepath" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/util" ) func GetSizeHandler(c *gin.Context) { diff --git a/handlers/image/handleAllImages.go b/handlers/image/handleAllImages.go index 5492703..c2c63a8 100644 --- a/handlers/image/handleAllImages.go +++ b/handlers/image/handleAllImages.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/models" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/models" ) func HandleAllImages(c *gin.Context) { diff --git a/handlers/image/handleImageDelete.go b/handlers/image/handleImageDelete.go index 5b591ef..b9bf401 100644 --- a/handlers/image/handleImageDelete.go +++ b/handlers/image/handleImageDelete.go @@ -2,11 +2,12 @@ package handlers import ( "fmt" - "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/util" "net/http" "os" + + "github.com/gin-gonic/gin" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/util" ) func HandleImageDelete(c *gin.Context) { @@ -22,7 +23,7 @@ func HandleImageDelete(c *gin.Context) { err := os.Remove(filePath) if success && err == nil { c.JSON(http.StatusOK, gin.H{ - "message": "Image deleted successfuly", + "message": "Image deleted successfully", "fileName": deletedFileName, }) } else { diff --git a/handlers/image/handleImageRename.go b/handlers/image/handleImageRename.go index 0c5d04a..2eea093 100644 --- a/handlers/image/handleImageRename.go +++ b/handlers/image/handleImageRename.go @@ -6,8 +6,8 @@ import ( "path/filepath" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/util" ) func HandleImageRename(c *gin.Context) { diff --git a/handlers/image/handleImageUpload.go b/handlers/image/handleImageUpload.go index c7956ad..58b0eb9 100644 --- a/handlers/image/handleImageUpload.go +++ b/handlers/image/handleImageUpload.go @@ -6,8 +6,8 @@ import ( "path/filepath" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/database" + "github.com/kevinanielsen/go-fast-cdn/util" ) func HandleImageUpload(c *gin.Context) { diff --git a/initializers/createFolders.go b/initializers/createFolders.go index 564dadf..fbd5aff 100644 --- a/initializers/createFolders.go +++ b/initializers/createFolders.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/util" ) func CreateFolders() { diff --git a/main.go b/main.go index 0ebdc99..f05c531 100644 --- a/main.go +++ b/main.go @@ -5,10 +5,10 @@ import ( "os" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/database" - ini "github.com/go-fast-cdn/initializers" - "github.com/go-fast-cdn/router" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/database" + ini "github.com/kevinanielsen/go-fast-cdn/initializers" + "github.com/kevinanielsen/go-fast-cdn/router" + "github.com/kevinanielsen/go-fast-cdn/util" ) func init() { diff --git a/router/api.go b/router/api.go index 604dac5..3c47853 100644 --- a/router/api.go +++ b/router/api.go @@ -4,11 +4,11 @@ import ( "net/http" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/handlers" - dbHandlers "github.com/go-fast-cdn/handlers/db" - dHandlers "github.com/go-fast-cdn/handlers/docs" - iHandlers "github.com/go-fast-cdn/handlers/image" - "github.com/go-fast-cdn/util" + "github.com/kevinanielsen/go-fast-cdn/handlers" + dbHandlers "github.com/kevinanielsen/go-fast-cdn/handlers/db" + dHandlers "github.com/kevinanielsen/go-fast-cdn/handlers/docs" + iHandlers "github.com/kevinanielsen/go-fast-cdn/handlers/image" + "github.com/kevinanielsen/go-fast-cdn/util" ) func AddApiRoutes(r *gin.Engine) { diff --git a/router/router.go b/router/router.go index 8a6eb7c..5e9fa85 100644 --- a/router/router.go +++ b/router/router.go @@ -4,8 +4,8 @@ import ( "os" "github.com/gin-gonic/gin" - "github.com/go-fast-cdn/middleware" - "github.com/go-fast-cdn/ui" + "github.com/kevinanielsen/go-fast-cdn/middleware" + "github.com/kevinanielsen/go-fast-cdn/ui" ) func Router() {