implement Scylla database
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"git.dubyatp.xyz/chat-api-server/db"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/go-chi/docgen"
|
||||
@@ -14,6 +15,10 @@ import (
|
||||
var routes = flag.Bool("routes", false, "Generate API route documentation")
|
||||
|
||||
func Start() {
|
||||
|
||||
db.InitScyllaDB()
|
||||
defer db.CloseScyllaDB()
|
||||
|
||||
flag.Parse()
|
||||
|
||||
r := chi.NewRouter()
|
||||
|
Reference in New Issue
Block a user