diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-09-10 22:13:24 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-09-10 22:13:24 +0300 |
| commit | 16165aea34a711027825b3f6512e73a0156f8068 (patch) | |
| tree | 138d92b8b01c41e07a3a2316fd109ddd97e80fa6 /backend/handlers | |
| parent | refactor: update readme (diff) | |
| download | lphub-16165aea34a711027825b3f6512e73a0156f8068.tar.gz lphub-16165aea34a711027825b3f6512e73a0156f8068.tar.bz2 lphub-16165aea34a711027825b3f6512e73a0156f8068.zip | |
refactor: move backend entry, rename module
Diffstat (limited to 'backend/handlers')
| -rw-r--r-- | backend/handlers/discussions.go | 5 | ||||
| -rw-r--r-- | backend/handlers/home.go | 5 | ||||
| -rw-r--r-- | backend/handlers/login.go | 5 | ||||
| -rw-r--r-- | backend/handlers/logs.go | 5 | ||||
| -rw-r--r-- | backend/handlers/map.go | 5 | ||||
| -rw-r--r-- | backend/handlers/mod.go | 5 | ||||
| -rw-r--r-- | backend/handlers/record.go | 7 | ||||
| -rw-r--r-- | backend/handlers/user.go | 5 |
8 files changed, 25 insertions, 17 deletions
diff --git a/backend/handlers/discussions.go b/backend/handlers/discussions.go index 0fc0c11..604eb39 100644 --- a/backend/handlers/discussions.go +++ b/backend/handlers/discussions.go | |||
| @@ -5,9 +5,10 @@ import ( | |||
| 5 | "strconv" | 5 | "strconv" |
| 6 | "time" | 6 | "time" |
| 7 | 7 | ||
| 8 | "lphub/database" | ||
| 9 | "lphub/models" | ||
| 10 | |||
| 8 | "github.com/gin-gonic/gin" | 11 | "github.com/gin-gonic/gin" |
| 9 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 10 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 11 | ) | 12 | ) |
| 12 | 13 | ||
| 13 | type MapDiscussionResponse struct { | 14 | type MapDiscussionResponse struct { |
diff --git a/backend/handlers/home.go b/backend/handlers/home.go index 16ac993..1734d28 100644 --- a/backend/handlers/home.go +++ b/backend/handlers/home.go | |||
| @@ -6,9 +6,10 @@ import ( | |||
| 6 | "sort" | 6 | "sort" |
| 7 | "strings" | 7 | "strings" |
| 8 | 8 | ||
| 9 | "lphub/database" | ||
| 10 | "lphub/models" | ||
| 11 | |||
| 9 | "github.com/gin-gonic/gin" | 12 | "github.com/gin-gonic/gin" |
| 10 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 11 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 12 | ) | 13 | ) |
| 13 | 14 | ||
| 14 | type SearchResponse struct { | 15 | type SearchResponse struct { |
diff --git a/backend/handlers/login.go b/backend/handlers/login.go index 8794989..565ebdb 100644 --- a/backend/handlers/login.go +++ b/backend/handlers/login.go | |||
| @@ -8,10 +8,11 @@ import ( | |||
| 8 | "os" | 8 | "os" |
| 9 | "time" | 9 | "time" |
| 10 | 10 | ||
| 11 | "lphub/database" | ||
| 12 | "lphub/models" | ||
| 13 | |||
| 11 | "github.com/gin-gonic/gin" | 14 | "github.com/gin-gonic/gin" |
| 12 | "github.com/golang-jwt/jwt/v4" | 15 | "github.com/golang-jwt/jwt/v4" |
| 13 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 14 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 15 | "github.com/pektezol/steam_go" | 16 | "github.com/pektezol/steam_go" |
| 16 | ) | 17 | ) |
| 17 | 18 | ||
diff --git a/backend/handlers/logs.go b/backend/handlers/logs.go index bf9e494..76ddac4 100644 --- a/backend/handlers/logs.go +++ b/backend/handlers/logs.go | |||
| @@ -5,9 +5,10 @@ import ( | |||
| 5 | "net/http" | 5 | "net/http" |
| 6 | "time" | 6 | "time" |
| 7 | 7 | ||
| 8 | "lphub/database" | ||
| 9 | "lphub/models" | ||
| 10 | |||
| 8 | "github.com/gin-gonic/gin" | 11 | "github.com/gin-gonic/gin" |
| 9 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 10 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 11 | ) | 12 | ) |
| 12 | 13 | ||
| 13 | const ( | 14 | const ( |
diff --git a/backend/handlers/map.go b/backend/handlers/map.go index 2f38b32..56c3455 100644 --- a/backend/handlers/map.go +++ b/backend/handlers/map.go | |||
| @@ -5,9 +5,10 @@ import ( | |||
| 5 | "strconv" | 5 | "strconv" |
| 6 | "time" | 6 | "time" |
| 7 | 7 | ||
| 8 | "lphub/database" | ||
| 9 | "lphub/models" | ||
| 10 | |||
| 8 | "github.com/gin-gonic/gin" | 11 | "github.com/gin-gonic/gin" |
| 9 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 10 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 11 | ) | 12 | ) |
| 12 | 13 | ||
| 13 | type MapSummaryResponse struct { | 14 | type MapSummaryResponse struct { |
diff --git a/backend/handlers/mod.go b/backend/handlers/mod.go index dc3d08d..4fdc78a 100644 --- a/backend/handlers/mod.go +++ b/backend/handlers/mod.go | |||
| @@ -6,9 +6,10 @@ import ( | |||
| 6 | "strconv" | 6 | "strconv" |
| 7 | "time" | 7 | "time" |
| 8 | 8 | ||
| 9 | "lphub/database" | ||
| 10 | "lphub/models" | ||
| 11 | |||
| 9 | "github.com/gin-gonic/gin" | 12 | "github.com/gin-gonic/gin" |
| 10 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 11 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 12 | ) | 13 | ) |
| 13 | 14 | ||
| 14 | type CreateMapSummaryRequest struct { | 15 | type CreateMapSummaryRequest struct { |
diff --git a/backend/handlers/record.go b/backend/handlers/record.go index c620430..fea6b5d 100644 --- a/backend/handlers/record.go +++ b/backend/handlers/record.go | |||
| @@ -12,11 +12,12 @@ import ( | |||
| 12 | "strconv" | 12 | "strconv" |
| 13 | "strings" | 13 | "strings" |
| 14 | 14 | ||
| 15 | "lphub/database" | ||
| 16 | "lphub/models" | ||
| 17 | "lphub/parser" | ||
| 18 | |||
| 15 | "github.com/gin-gonic/gin" | 19 | "github.com/gin-gonic/gin" |
| 16 | "github.com/google/uuid" | 20 | "github.com/google/uuid" |
| 17 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 18 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 19 | "github.com/pektezol/leastportalshub/backend/parser" | ||
| 20 | "golang.org/x/oauth2/google" | 21 | "golang.org/x/oauth2/google" |
| 21 | "golang.org/x/oauth2/jwt" | 22 | "golang.org/x/oauth2/jwt" |
| 22 | "google.golang.org/api/drive/v3" | 23 | "google.golang.org/api/drive/v3" |
diff --git a/backend/handlers/user.go b/backend/handlers/user.go index 8febf3a..45daa31 100644 --- a/backend/handlers/user.go +++ b/backend/handlers/user.go | |||
| @@ -6,9 +6,10 @@ import ( | |||
| 6 | "regexp" | 6 | "regexp" |
| 7 | "time" | 7 | "time" |
| 8 | 8 | ||
| 9 | "lphub/database" | ||
| 10 | "lphub/models" | ||
| 11 | |||
| 9 | "github.com/gin-gonic/gin" | 12 | "github.com/gin-gonic/gin" |
| 10 | "github.com/pektezol/leastportalshub/backend/database" | ||
| 11 | "github.com/pektezol/leastportalshub/backend/models" | ||
| 12 | ) | 13 | ) |
| 13 | 14 | ||
| 14 | type ProfileResponse struct { | 15 | type ProfileResponse struct { |