aboutsummaryrefslogtreecommitdiff
path: root/backend/api
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-09-10 22:13:24 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-09-10 22:13:24 +0300
commit16165aea34a711027825b3f6512e73a0156f8068 (patch)
tree138d92b8b01c41e07a3a2316fd109ddd97e80fa6 /backend/api
parentrefactor: update readme (diff)
downloadlphub-16165aea34a711027825b3f6512e73a0156f8068.tar.gz
lphub-16165aea34a711027825b3f6512e73a0156f8068.tar.bz2
lphub-16165aea34a711027825b3f6512e73a0156f8068.zip
refactor: move backend entry, rename module
Diffstat (limited to 'backend/api')
-rw-r--r--backend/api/auth.go5
-rw-r--r--backend/api/routes.go3
2 files changed, 5 insertions, 3 deletions
diff --git a/backend/api/auth.go b/backend/api/auth.go
index 91ef80c..621a68b 100644
--- a/backend/api/auth.go
+++ b/backend/api/auth.go
@@ -5,10 +5,11 @@ import (
5 "os" 5 "os"
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/golang-jwt/jwt/v4" 12 "github.com/golang-jwt/jwt/v4"
10 "github.com/pektezol/leastportalshub/backend/database"
11 "github.com/pektezol/leastportalshub/backend/models"
12) 13)
13 14
14func CheckAuth(c *gin.Context) { 15func CheckAuth(c *gin.Context) {
diff --git a/backend/api/routes.go b/backend/api/routes.go
index ed1ca90..050a3bd 100644
--- a/backend/api/routes.go
+++ b/backend/api/routes.go
@@ -1,8 +1,9 @@
1package api 1package api
2 2
3import ( 3import (
4 "lphub/handlers"
5
4 "github.com/gin-gonic/gin" 6 "github.com/gin-gonic/gin"
5 "github.com/pektezol/leastportalshub/backend/handlers"
6 swaggerfiles "github.com/swaggo/files" 7 swaggerfiles "github.com/swaggo/files"
7 ginSwagger "github.com/swaggo/gin-swagger" 8 ginSwagger "github.com/swaggo/gin-swagger"
8) 9)