diff options
Diffstat (limited to 'api/internal/controllers')
| -rw-r--r-- | api/internal/controllers/auth.go | 14 | ||||
| -rw-r--r-- | api/internal/controllers/stats.go | 4 | ||||
| -rw-r--r-- | api/internal/controllers/user.go | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/api/internal/controllers/auth.go b/api/internal/controllers/auth.go index 744a884..de9ed05 100644 --- a/api/internal/controllers/auth.go +++ b/api/internal/controllers/auth.go | |||
| @@ -1,17 +1,17 @@ | |||
| 1 | package controllers | 1 | package controllers |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "encoding/base64" | ||
| 5 | "net/http" | ||
| 6 | "github.com/gin-gonic/gin" | ||
| 7 | "water/api/database" | ||
| 8 | "errors" | ||
| 9 | "crypto/rand" | 4 | "crypto/rand" |
| 10 | "database/sql" | 5 | "database/sql" |
| 11 | 6 | "encoding/base64" | |
| 12 | "water/api/models" | 7 | "errors" |
| 8 | "github.com/gin-gonic/gin" | ||
| 9 | "net/http" | ||
| 10 | "water/api/internal/models" | ||
| 11 | |||
| 13 | _ "github.com/mattn/go-sqlite3" | 12 | _ "github.com/mattn/go-sqlite3" |
| 14 | "golang.org/x/crypto/bcrypt" | 13 | "golang.org/x/crypto/bcrypt" |
| 14 | "water/api/internal/database" | ||
| 15 | ) | 15 | ) |
| 16 | 16 | ||
| 17 | func AuthHandler (c *gin.Context) { | 17 | func AuthHandler (c *gin.Context) { |
diff --git a/api/internal/controllers/stats.go b/api/internal/controllers/stats.go index 9808ace..d8ed434 100644 --- a/api/internal/controllers/stats.go +++ b/api/internal/controllers/stats.go | |||
| @@ -4,8 +4,8 @@ import ( | |||
| 4 | "database/sql" | 4 | "database/sql" |
| 5 | "github.com/gin-gonic/gin" | 5 | "github.com/gin-gonic/gin" |
| 6 | "net/http" | 6 | "net/http" |
| 7 | "water/api/database" | 7 | "water/api/internal/database" |
| 8 | "water/api/models" | 8 | "water/api/internal/models" |
| 9 | ) | 9 | ) |
| 10 | 10 | ||
| 11 | func GetAllStatistics(c *gin.Context) { | 11 | func GetAllStatistics(c *gin.Context) { |
diff --git a/api/internal/controllers/user.go b/api/internal/controllers/user.go index 1f3f813..76dedc8 100644 --- a/api/internal/controllers/user.go +++ b/api/internal/controllers/user.go | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | package controllers | 1 | package controllers |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "net/http" | ||
| 5 | "github.com/gin-gonic/gin" | 4 | "github.com/gin-gonic/gin" |
| 5 | "net/http" | ||
| 6 | ) | 6 | ) |
| 7 | 7 | ||
| 8 | func GetUser(c *gin.Context) { | 8 | func GetUser(c *gin.Context) { |
