🔧 Fleshing out save and get settings endpoints
This commit is contained in:
@@ -2,21 +2,19 @@ const mongoose = require("mongoose");
|
||||
const paginate = require("mongoose-paginate-v2");
|
||||
|
||||
const SettingsScehma = mongoose.Schema({
|
||||
directConnect: {
|
||||
client: {
|
||||
name: String,
|
||||
version: String,
|
||||
hostname: String,
|
||||
port: Number,
|
||||
https: Boolean,
|
||||
username: String,
|
||||
password: String,
|
||||
hubs: [{
|
||||
|
||||
}]
|
||||
}
|
||||
}
|
||||
})
|
||||
directConnect: {
|
||||
client: {
|
||||
name: String,
|
||||
version: String,
|
||||
airdcppUserSettings: Object,
|
||||
hostname: String,
|
||||
protocol: String,
|
||||
username: String,
|
||||
password: String,
|
||||
hubs: [{}],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const Settings = mongoose.model("Settings", SettingsScehma);
|
||||
export default Settings;
|
||||
export default Settings;
|
||||
|
||||
Reference in New Issue
Block a user