testt run code

This commit is contained in:
steev 2022-09-26 22:38:13 +02:00
parent 4f66fb8698
commit 7a7d7ac02f
8 changed files with 14 additions and 13 deletions

View File

@ -9,13 +9,13 @@ import (
"strconv" "strconv"
"github.com/FrankenBotDev/FrankenAPI/ent/authorizables" "github.com/FrankenBotDev/FrankenAPI/ent/authorizables"
"github.com/FrankenBotDev/FrankenAPI/pkg/actions" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/actions"
"github.com/FrankenBotDev/FrankenAPI/pkg/logger" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/logger"
"github.com/FrankenBotDev/FrankenAPI/pkg/punishments" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/punishments"
"github.com/FrankenBotDev/FrankenAPI/pkg/security" "github.com/FrankenBotDev/FrankenAPI/pkg/security"
"github.com/FrankenBotDev/FrankenAPI/pkg/settings" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/settings"
"github.com/FrankenBotDev/FrankenAPI/pkg/stats" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/stats"
"github.com/FrankenBotDev/FrankenAPI/pkg/support" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/support"
"github.com/FrankenBotDev/FrankenAPI/pkg/sys" "github.com/FrankenBotDev/FrankenAPI/pkg/sys"
"github.com/joho/godotenv" "github.com/joho/godotenv"
"gopkg.in/olahol/melody.v1" "gopkg.in/olahol/melody.v1"
@ -197,5 +197,6 @@ func main() {
delete(gophers, s) delete(gophers, s)
}) })
http.ListenAndServe(":3000", r) fmt.Println("API Online on 0.0.0.0:3000")
http.ListenAndServe("0.0.0.0:3000", r)
} }

2
go.mod
View File

@ -9,6 +9,7 @@ require (
github.com/go-chi/jwtauth/v5 v5.0.2 github.com/go-chi/jwtauth/v5 v5.0.2
github.com/jackc/pgx/v4 v4.16.1 github.com/jackc/pgx/v4 v4.16.1
github.com/joho/godotenv v1.4.0 github.com/joho/godotenv v1.4.0
gopkg.in/olahol/melody.v1 v1.0.0-20170518105555-d52139073376
) )
require ( require (
@ -41,5 +42,4 @@ require (
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
golang.org/x/mod v0.5.1 // indirect golang.org/x/mod v0.5.1 // indirect
golang.org/x/text v0.3.7 // indirect golang.org/x/text v0.3.7 // indirect
gopkg.in/olahol/melody.v1 v1.0.0-20170518105555-d52139073376 // indirect
) )

View File

@ -10,7 +10,7 @@ import (
"github.com/FrankenBotDev/FrankenAPI/ent" "github.com/FrankenBotDev/FrankenAPI/ent"
"github.com/FrankenBotDev/FrankenAPI/ent/actions" "github.com/FrankenBotDev/FrankenAPI/ent/actions"
"github.com/FrankenBotDev/FrankenAPI/pkg/logger" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/logger"
"github.com/FrankenBotDev/FrankenAPI/pkg/sys" "github.com/FrankenBotDev/FrankenAPI/pkg/sys"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
) )

View File

@ -8,7 +8,7 @@ import (
"github.com/FrankenBotDev/FrankenAPI/ent" "github.com/FrankenBotDev/FrankenAPI/ent"
"github.com/FrankenBotDev/FrankenAPI/ent/punishments" "github.com/FrankenBotDev/FrankenAPI/ent/punishments"
"github.com/FrankenBotDev/FrankenAPI/pkg/logger" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/logger"
"github.com/FrankenBotDev/FrankenAPI/pkg/sys" "github.com/FrankenBotDev/FrankenAPI/pkg/sys"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
) )

View File

@ -11,7 +11,7 @@ import (
"github.com/FrankenBotDev/FrankenAPI/ent" "github.com/FrankenBotDev/FrankenAPI/ent"
"github.com/FrankenBotDev/FrankenAPI/ent/settings" "github.com/FrankenBotDev/FrankenAPI/ent/settings"
"github.com/FrankenBotDev/FrankenAPI/ent/socialmedia" "github.com/FrankenBotDev/FrankenAPI/ent/socialmedia"
"github.com/FrankenBotDev/FrankenAPI/pkg/logger" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/logger"
"github.com/FrankenBotDev/FrankenAPI/pkg/sys" "github.com/FrankenBotDev/FrankenAPI/pkg/sys"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
) )

View File

@ -11,7 +11,7 @@ import (
"github.com/FrankenBotDev/FrankenAPI/ent" "github.com/FrankenBotDev/FrankenAPI/ent"
"github.com/FrankenBotDev/FrankenAPI/ent/user" "github.com/FrankenBotDev/FrankenAPI/ent/user"
"github.com/FrankenBotDev/FrankenAPI/pkg/logger" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/logger"
"github.com/FrankenBotDev/FrankenAPI/pkg/sys" "github.com/FrankenBotDev/FrankenAPI/pkg/sys"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
) )

View File

@ -12,7 +12,7 @@ import (
"github.com/FrankenBotDev/FrankenAPI/ent" "github.com/FrankenBotDev/FrankenAPI/ent"
"github.com/FrankenBotDev/FrankenAPI/ent/support" "github.com/FrankenBotDev/FrankenAPI/ent/support"
"github.com/FrankenBotDev/FrankenAPI/ent/supportresponse" "github.com/FrankenBotDev/FrankenAPI/ent/supportresponse"
"github.com/FrankenBotDev/FrankenAPI/pkg/logger" "github.com/FrankenBotDev/FrankenAPI/pkg/routes/logger"
"github.com/FrankenBotDev/FrankenAPI/pkg/sys" "github.com/FrankenBotDev/FrankenAPI/pkg/sys"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
) )