diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-20 11:30:25 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-20 11:30:25 +0300 |
| commit | c61374a2998c33921013693b5faf3159edecf76a (patch) | |
| tree | 90993db9dc8df481b99e6fe1035980b7b4afaf93 | |
| parent | docs: relicense to AGPLv3 (diff) | |
| download | lphub-c61374a2998c33921013693b5faf3159edecf76a.tar.gz lphub-c61374a2998c33921013693b5faf3159edecf76a.tar.bz2 lphub-c61374a2998c33921013693b5faf3159edecf76a.zip | |
refactor: changed github repo name
Former-commit-id: e579843a0d66574b54b48fc1c02083c868db68a3
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | backend/controllers/homeController.go | 4 | ||||
| -rw-r--r-- | backend/controllers/loginController.go | 4 | ||||
| -rw-r--r-- | backend/controllers/mapController.go | 4 | ||||
| -rw-r--r-- | backend/controllers/modController.go | 4 | ||||
| -rw-r--r-- | backend/controllers/recordController.go | 6 | ||||
| -rw-r--r-- | backend/controllers/userController.go | 4 | ||||
| -rw-r--r-- | backend/middleware/auth.go | 4 | ||||
| -rw-r--r-- | backend/routes/routes.go | 4 | ||||
| -rw-r--r-- | frontend/src/components/pages/about.js | 2 | ||||
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | main.go | 10 |
12 files changed, 25 insertions, 25 deletions
| @@ -26,7 +26,7 @@ Full API documentation can be found at https://lp.ardapektezol.com/api/v1/ | |||
| 26 | 26 | ||
| 27 | ## License | 27 | ## License |
| 28 | 28 | ||
| 29 | 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. | 29 | 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. |
| 30 | 30 | ||
| 31 | ## Contact | 31 | ## Contact |
| 32 | 32 | ||
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 ( | |||
| 6 | "strings" | 6 | "strings" |
| 7 | 7 | ||
| 8 | "github.com/gin-gonic/gin" | 8 | "github.com/gin-gonic/gin" |
| 9 | "github.com/pektezol/leastportals/backend/database" | 9 | "github.com/pektezol/leastportalshub/backend/database" |
| 10 | "github.com/pektezol/leastportals/backend/models" | 10 | "github.com/pektezol/leastportalshub/backend/models" |
| 11 | ) | 11 | ) |
| 12 | 12 | ||
| 13 | func Home(c *gin.Context) { | 13 | 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 ( | |||
| 10 | 10 | ||
| 11 | "github.com/gin-gonic/gin" | 11 | "github.com/gin-gonic/gin" |
| 12 | "github.com/golang-jwt/jwt/v4" | 12 | "github.com/golang-jwt/jwt/v4" |
| 13 | "github.com/pektezol/leastportals/backend/database" | 13 | "github.com/pektezol/leastportalshub/backend/database" |
| 14 | "github.com/pektezol/leastportals/backend/models" | 14 | "github.com/pektezol/leastportalshub/backend/models" |
| 15 | "github.com/solovev/steam_go" | 15 | "github.com/solovev/steam_go" |
| 16 | ) | 16 | ) |
| 17 | 17 | ||
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 ( | |||
| 5 | "strconv" | 5 | "strconv" |
| 6 | 6 | ||
| 7 | "github.com/gin-gonic/gin" | 7 | "github.com/gin-gonic/gin" |
| 8 | "github.com/pektezol/leastportals/backend/database" | 8 | "github.com/pektezol/leastportalshub/backend/database" |
| 9 | "github.com/pektezol/leastportals/backend/models" | 9 | "github.com/pektezol/leastportalshub/backend/models" |
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | // GET Map Summary | 12 | // 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 ( | |||
| 5 | "strconv" | 5 | "strconv" |
| 6 | 6 | ||
| 7 | "github.com/gin-gonic/gin" | 7 | "github.com/gin-gonic/gin" |
| 8 | "github.com/pektezol/leastportals/backend/database" | 8 | "github.com/pektezol/leastportalshub/backend/database" |
| 9 | "github.com/pektezol/leastportals/backend/models" | 9 | "github.com/pektezol/leastportalshub/backend/models" |
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | // POST Map Summary | 12 | // 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 ( | |||
| 11 | 11 | ||
| 12 | "github.com/gin-gonic/gin" | 12 | "github.com/gin-gonic/gin" |
| 13 | "github.com/google/uuid" | 13 | "github.com/google/uuid" |
| 14 | "github.com/pektezol/leastportals/backend/database" | 14 | "github.com/pektezol/leastportalshub/backend/database" |
| 15 | "github.com/pektezol/leastportals/backend/models" | 15 | "github.com/pektezol/leastportalshub/backend/models" |
| 16 | "github.com/pektezol/leastportals/backend/parser" | 16 | "github.com/pektezol/leastportalshub/backend/parser" |
| 17 | "golang.org/x/oauth2/google" | 17 | "golang.org/x/oauth2/google" |
| 18 | "golang.org/x/oauth2/jwt" | 18 | "golang.org/x/oauth2/jwt" |
| 19 | "google.golang.org/api/drive/v3" | 19 | "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 ( | |||
| 7 | "time" | 7 | "time" |
| 8 | 8 | ||
| 9 | "github.com/gin-gonic/gin" | 9 | "github.com/gin-gonic/gin" |
| 10 | "github.com/pektezol/leastportals/backend/database" | 10 | "github.com/pektezol/leastportalshub/backend/database" |
| 11 | "github.com/pektezol/leastportals/backend/models" | 11 | "github.com/pektezol/leastportalshub/backend/models" |
| 12 | ) | 12 | ) |
| 13 | 13 | ||
| 14 | // GET Profile | 14 | // 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 ( | |||
| 7 | 7 | ||
| 8 | "github.com/gin-gonic/gin" | 8 | "github.com/gin-gonic/gin" |
| 9 | "github.com/golang-jwt/jwt/v4" | 9 | "github.com/golang-jwt/jwt/v4" |
| 10 | "github.com/pektezol/leastportals/backend/database" | 10 | "github.com/pektezol/leastportalshub/backend/database" |
| 11 | "github.com/pektezol/leastportals/backend/models" | 11 | "github.com/pektezol/leastportalshub/backend/models" |
| 12 | ) | 12 | ) |
| 13 | 13 | ||
| 14 | func CheckAuth(c *gin.Context) { | 14 | 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 | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "github.com/gin-gonic/gin" | 4 | "github.com/gin-gonic/gin" |
| 5 | "github.com/pektezol/leastportals/backend/controllers" | 5 | "github.com/pektezol/leastportalshub/backend/controllers" |
| 6 | "github.com/pektezol/leastportals/backend/middleware" | 6 | "github.com/pektezol/leastportalshub/backend/middleware" |
| 7 | swaggerfiles "github.com/swaggo/files" | 7 | swaggerfiles "github.com/swaggo/files" |
| 8 | ginSwagger "github.com/swaggo/gin-swagger" | 8 | ginSwagger "github.com/swaggo/gin-swagger" |
| 9 | ) | 9 | ) |
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() { | |||
| 10 | const fetchReadme = async () => { | 10 | const fetchReadme = async () => { |
| 11 | try { | 11 | try { |
| 12 | const response = await fetch( | 12 | const response = await fetch( |
| 13 | 'https://raw.githubusercontent.com/pektezol/LeastPortals/main/README.md' | 13 | 'https://raw.githubusercontent.com/pektezol/leastportalshub/main/README.md' |
| 14 | ); | 14 | ); |
| 15 | if (!response.ok) { | 15 | if (!response.ok) { |
| 16 | throw new Error('Failed to fetch README'); | 16 | throw new Error('Failed to fetch README'); |
| @@ -1,4 +1,4 @@ | |||
| 1 | module github.com/pektezol/leastportals | 1 | module github.com/pektezol/leastportalshub |
| 2 | 2 | ||
| 3 | go 1.19 | 3 | go 1.19 |
| 4 | 4 | ||
| @@ -7,9 +7,9 @@ import ( | |||
| 7 | 7 | ||
| 8 | "github.com/gin-gonic/gin" | 8 | "github.com/gin-gonic/gin" |
| 9 | "github.com/joho/godotenv" | 9 | "github.com/joho/godotenv" |
| 10 | "github.com/pektezol/leastportals/backend/database" | 10 | "github.com/pektezol/leastportalshub/backend/database" |
| 11 | "github.com/pektezol/leastportals/backend/routes" | 11 | "github.com/pektezol/leastportalshub/backend/routes" |
| 12 | _ "github.com/pektezol/leastportals/docs" | 12 | _ "github.com/pektezol/leastportalshub/docs" |
| 13 | ) | 13 | ) |
| 14 | 14 | ||
| 15 | // @title Least Portals Database API | 15 | // @title Least Portals Database API |
| @@ -19,8 +19,8 @@ import ( | |||
| 19 | // @license.name GNU General Public License, Version 2 | 19 | // @license.name GNU General Public License, Version 2 |
| 20 | // @license.url https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | 20 | // @license.url https://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
| 21 | 21 | ||
| 22 | // @host lp.ardapektezol.com/api | 22 | // @host lp.ardapektezol.com/api |
| 23 | // @BasePath /v1 | 23 | // @BasePath /v1 |
| 24 | func main() { | 24 | func main() { |
| 25 | if os.Getenv("ENV") == "PROD" { | 25 | if os.Getenv("ENV") == "PROD" { |
| 26 | gin.SetMode(gin.ReleaseMode) | 26 | gin.SetMode(gin.ReleaseMode) |