Compare commits
1 Commits
main
...
setting-up
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
013601dd50 |
@@ -5,9 +5,11 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"gitlab.com/pactual1/backend/config/middlewares"
|
||||
|
||||
"gitlab.com/pactual1/backend/config/shared"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/VoidArtanis/go-rest-boilerplate/middlewares"
|
||||
"github.com/VoidArtanis/go-rest-boilerplate/shared"
|
||||
)
|
||||
|
||||
type AuthController struct{}
|
||||
|
||||
@@ -2,9 +2,9 @@ package controllers
|
||||
|
||||
// import (
|
||||
// "net/http"
|
||||
// models "novatech/models"
|
||||
// models "gitlab.com/pactual1/backend/config/models"
|
||||
|
||||
// "github.com/VoidArtanis/go-rest-boilerplate/models"
|
||||
// "gitlab.com/pactual1/backend/config/models"
|
||||
// "github.com/gin-gonic/gin"
|
||||
// )
|
||||
|
||||
|
||||
6
go.mod
6
go.mod
@@ -1,17 +1,17 @@
|
||||
module novatech
|
||||
module gitlab.com/pactual1/backend/config
|
||||
|
||||
go 1.21.0
|
||||
|
||||
require (
|
||||
github.com/VoidArtanis/go-rest-boilerplate v0.0.0-20171106114442-315cdd5f775f
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible
|
||||
github.com/gin-gonic/gin v1.9.1
|
||||
github.com/jinzhu/gorm v1.9.16
|
||||
github.com/joho/godotenv v1.5.1
|
||||
github.com/mattn/go-sqlite3 v1.14.0
|
||||
github.com/qor/admin v1.2.0
|
||||
)
|
||||
|
||||
replace gitlab.com/pactual1/backend => ./
|
||||
|
||||
require (
|
||||
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 // indirect
|
||||
github.com/aymerick/douceur v0.2.0 // indirect
|
||||
|
||||
2
go.sum
2
go.sum
@@ -1,7 +1,5 @@
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
|
||||
github.com/VoidArtanis/go-rest-boilerplate v0.0.0-20171106114442-315cdd5f775f h1:hkHclwFglpwGnXIbBEpOZ1knFtnNSSatQMesPQUS0jA=
|
||||
github.com/VoidArtanis/go-rest-boilerplate v0.0.0-20171106114442-315cdd5f775f/go.mod h1:UU6tTLCTPtCk0y7/XV7bVIZS4Ft5iYW9uaftCu3CuC4=
|
||||
github.com/andybalholm/cascadia v1.1.0 h1:BuuO6sSfQNFRu1LppgbD25Hr2vLYW25JvxHs5zzsLTo=
|
||||
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
|
||||
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 h1:4daAzAu0S6Vi7/lbWECcX0j45yZReDZ56BQsrVBOEEY=
|
||||
|
||||
9
main.go
9
main.go
@@ -4,10 +4,11 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"novatech/config"
|
||||
"novatech/models"
|
||||
"novatech/routes"
|
||||
"novatech/shared"
|
||||
|
||||
"gitlab.com/pactual1/backend/config/config"
|
||||
"gitlab.com/pactual1/backend/config/models"
|
||||
"gitlab.com/pactual1/backend/config/routes"
|
||||
"gitlab.com/pactual1/backend/config/shared"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jinzhu/gorm"
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"gitlab.com/pactual1/backend/config/middlewares"
|
||||
|
||||
"gitlab.com/pactual1/backend/config/controllers"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/VoidArtanis/go-rest-boilerplate/middlewares"
|
||||
"github.com/VoidArtanis/go-rest-boilerplate/controllers"
|
||||
)
|
||||
|
||||
func RegisterProtectedRoutes(r *gin.Engine){
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"github.com/VoidArtanis/go-rest-boilerplate/controllers"
|
||||
"gitlab.com/pactual1/backend/config/controllers"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"gitlab.com/pactual1/backend/config/controllers"
|
||||
|
||||
"gitlab.com/pactual1/backend/config/middlewares"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/VoidArtanis/go-rest-boilerplate/controllers"
|
||||
"github.com/VoidArtanis/go-rest-boilerplate/middlewares"
|
||||
)
|
||||
|
||||
func InitRouter(engine *gin.Engine) {
|
||||
|
||||
@@ -3,8 +3,9 @@ package shared
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"novatech/config"
|
||||
"novatech/models"
|
||||
|
||||
"gitlab.com/pactual1/backend/config/config"
|
||||
"gitlab.com/pactual1/backend/config/models"
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
_ "github.com/jinzhu/gorm/dialects/postgres"
|
||||
|
||||
Reference in New Issue
Block a user