server: implement scylladb
This commit is contained in:
@@ -3,10 +3,14 @@ package api
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"git.dubyatp.xyz/dubyatp/scannerbot/server/db"
|
||||
"github.com/go-chi/chi/v5"
|
||||
)
|
||||
|
||||
func Start() {
|
||||
db.InitScyllaDB()
|
||||
defer db.CloseScyllaDB()
|
||||
|
||||
r := chi.NewRouter()
|
||||
|
||||
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user