aboutsummaryrefslogtreecommitdiff
path: root/backend/api
diff options
context:
space:
mode:
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)