FlexMLS support
This commit is contained in:
@@ -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"))}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user