FlexMLS support

This commit is contained in:
Caleb Gardner
2024-02-05 11:23:01 -06:00
parent 7087574366
commit 16a0cf7e9b
2 changed files with 16 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package flexmls
import (
"github.com/CalebQ42/stupid-backend/v2/defaultapp"
"go.mongodb.org/mongo-driver/mongo"
)
type FlexMLS struct {
*defaultapp.App
}
func NewBackend(client *mongo.Client) *FlexMLS {
return &FlexMLS{defaultapp.NewDefaultApp(client.Database("flexmls"))}
}
+2
View File
@@ -11,6 +11,7 @@ import (
"github.com/CalebQ42/cdr-backend"
"github.com/CalebQ42/darkstorm-server/internal/darkstormtech"
"github.com/CalebQ42/darkstorm-server/internal/flexmls"
"github.com/CalebQ42/stupid-backend/v2"
"github.com/CalebQ42/stupid-backend/v2/db"
swassistantbackend "github.com/CalebQ42/swassistant-backend"
@@ -28,6 +29,7 @@ func setupStupid(keyPath, mongoStr string) error {
"swassistant": swassistantbackend.NewSWBackend(client),
"cdr": cdr.NewBackend(client),
"darkstormtech": darkstormtech.NewDarkstormTech(client, filepath.Join(flag.Arg(0), "files")),
"flexmls": flexmls.NewBackend(client),
}, "https://darkstorm.tech")
users := true
var pub, priv []byte