server: implement scylladb

This commit is contained in:
2026-05-14 00:21:44 +00:00
parent 4be223d1b7
commit d059dc0032
5 changed files with 86 additions and 1 deletions
+4
View File
@@ -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) {