Implement CDR backend

This commit is contained in:
Caleb Gardner
2023-10-15 21:00:48 -05:00
parent 2dd5fcde4f
commit 0d2ef51a79
3 changed files with 6 additions and 11 deletions
+2 -2
View File
@@ -9,10 +9,10 @@ import (
"os"
"path/filepath"
"github.com/CalebQ42/cdr-backend"
"github.com/CalebQ42/darkstorm-server/internal/darkstormtech"
"github.com/CalebQ42/stupid-backend"
"github.com/CalebQ42/stupid-backend/pkg/db"
"github.com/CalebQ42/stupid-backend/pkg/defaultapp"
swassistantbackend "github.com/CalebQ42/swassistant-backend"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
@@ -26,7 +26,7 @@ func setupStupid(keyPath, mongoStr string) error {
}
stupid := stupid.NewStupidBackend(db.NewMongoTable(client.Database("stupid").Collection("keys")), map[string]stupid.App{
"swassistant": swassistantbackend.NewSWBackend(client),
"cdr": defaultapp.NewDefaultApp(client.Database("cdr")),
"cdr": cdr.NewBackend(client),
"darkstormtech": darkstormtech.NewDarkstormTech(client, filepath.Join(flag.Arg(0), "files")),
}, "https://darkstorm.tech")
users := true