From c61374a2998c33921013693b5faf3159edecf76a Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 20 Jul 2023 11:30:25 +0300 Subject: refactor: changed github repo name Former-commit-id: e579843a0d66574b54b48fc1c02083c868db68a3 --- README.md | 2 +- backend/controllers/homeController.go | 4 ++-- backend/controllers/loginController.go | 4 ++-- backend/controllers/mapController.go | 4 ++-- backend/controllers/modController.go | 4 ++-- backend/controllers/recordController.go | 6 +++--- backend/controllers/userController.go | 4 ++-- backend/middleware/auth.go | 4 ++-- backend/routes/routes.go | 4 ++-- frontend/src/components/pages/about.js | 2 +- go.mod | 2 +- main.go | 10 +++++----- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index db2bdab..0dd62f8 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Full API documentation can be found at https://lp.ardapektezol.com/api/v1/ ## License -This project is licensed under the GNU Affero General Public License v3.0 - see the [LICENSE](https://github.com/pektezol/LeastPortals/blob/main/LICENSE) file for details. +This project is licensed under the GNU Affero General Public License v3.0 - see the [LICENSE](https://github.com/pektezol/leastportalshub/blob/main/LICENSE) file for details. ## Contact diff --git a/backend/controllers/homeController.go b/backend/controllers/homeController.go index 2780e63..c94590a 100644 --- a/backend/controllers/homeController.go +++ b/backend/controllers/homeController.go @@ -6,8 +6,8 @@ import ( "strings" "github.com/gin-gonic/gin" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/models" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/models" ) func Home(c *gin.Context) { diff --git a/backend/controllers/loginController.go b/backend/controllers/loginController.go index ae6e957..e907b22 100644 --- a/backend/controllers/loginController.go +++ b/backend/controllers/loginController.go @@ -10,8 +10,8 @@ import ( "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v4" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/models" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/models" "github.com/solovev/steam_go" ) diff --git a/backend/controllers/mapController.go b/backend/controllers/mapController.go index e7c5566..ebd65dd 100644 --- a/backend/controllers/mapController.go +++ b/backend/controllers/mapController.go @@ -5,8 +5,8 @@ import ( "strconv" "github.com/gin-gonic/gin" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/models" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/models" ) // GET Map Summary diff --git a/backend/controllers/modController.go b/backend/controllers/modController.go index 07edff5..e2add1f 100644 --- a/backend/controllers/modController.go +++ b/backend/controllers/modController.go @@ -5,8 +5,8 @@ import ( "strconv" "github.com/gin-gonic/gin" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/models" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/models" ) // POST Map Summary diff --git a/backend/controllers/recordController.go b/backend/controllers/recordController.go index d1404f4..951be41 100644 --- a/backend/controllers/recordController.go +++ b/backend/controllers/recordController.go @@ -11,9 +11,9 @@ import ( "github.com/gin-gonic/gin" "github.com/google/uuid" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/models" - "github.com/pektezol/leastportals/backend/parser" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/models" + "github.com/pektezol/leastportalshub/backend/parser" "golang.org/x/oauth2/google" "golang.org/x/oauth2/jwt" "google.golang.org/api/drive/v3" diff --git a/backend/controllers/userController.go b/backend/controllers/userController.go index e73b1fe..6aa77fc 100644 --- a/backend/controllers/userController.go +++ b/backend/controllers/userController.go @@ -7,8 +7,8 @@ import ( "time" "github.com/gin-gonic/gin" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/models" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/models" ) // GET Profile diff --git a/backend/middleware/auth.go b/backend/middleware/auth.go index 0698f0a..0744b3d 100644 --- a/backend/middleware/auth.go +++ b/backend/middleware/auth.go @@ -7,8 +7,8 @@ import ( "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v4" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/models" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/models" ) func CheckAuth(c *gin.Context) { diff --git a/backend/routes/routes.go b/backend/routes/routes.go index 1377d32..0b80678 100644 --- a/backend/routes/routes.go +++ b/backend/routes/routes.go @@ -2,8 +2,8 @@ package routes import ( "github.com/gin-gonic/gin" - "github.com/pektezol/leastportals/backend/controllers" - "github.com/pektezol/leastportals/backend/middleware" + "github.com/pektezol/leastportalshub/backend/controllers" + "github.com/pektezol/leastportalshub/backend/middleware" swaggerfiles "github.com/swaggo/files" ginSwagger "github.com/swaggo/gin-swagger" ) diff --git a/frontend/src/components/pages/about.js b/frontend/src/components/pages/about.js index a265006..11b065d 100644 --- a/frontend/src/components/pages/about.js +++ b/frontend/src/components/pages/about.js @@ -10,7 +10,7 @@ export default function About() { const fetchReadme = async () => { try { const response = await fetch( - 'https://raw.githubusercontent.com/pektezol/LeastPortals/main/README.md' + 'https://raw.githubusercontent.com/pektezol/leastportalshub/main/README.md' ); if (!response.ok) { throw new Error('Failed to fetch README'); diff --git a/go.mod b/go.mod index 312afcf..b3852de 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/pektezol/leastportals +module github.com/pektezol/leastportalshub go 1.19 diff --git a/main.go b/main.go index 8aaa80c..9b531fe 100644 --- a/main.go +++ b/main.go @@ -7,9 +7,9 @@ import ( "github.com/gin-gonic/gin" "github.com/joho/godotenv" - "github.com/pektezol/leastportals/backend/database" - "github.com/pektezol/leastportals/backend/routes" - _ "github.com/pektezol/leastportals/docs" + "github.com/pektezol/leastportalshub/backend/database" + "github.com/pektezol/leastportalshub/backend/routes" + _ "github.com/pektezol/leastportalshub/docs" ) // @title Least Portals Database API @@ -19,8 +19,8 @@ import ( // @license.name GNU General Public License, Version 2 // @license.url https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -// @host lp.ardapektezol.com/api -// @BasePath /v1 +// @host lp.ardapektezol.com/api +// @BasePath /v1 func main() { if os.Getenv("ENV") == "PROD" { gin.SetMode(gin.ReleaseMode) -- cgit v1.2.3