something update
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
"express": "^4.21.0",
|
||||
"mongoose": "^8.6.2",
|
||||
"ms": "^2.1.3",
|
||||
"ollama": "^0.5.9"
|
||||
"ollama": "^0.5.9",
|
||||
"uuid": "^10.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
9
pnpm-lock.yaml
generated
9
pnpm-lock.yaml
generated
@@ -38,6 +38,9 @@ importers:
|
||||
ollama:
|
||||
specifier: ^0.5.9
|
||||
version: 0.5.9
|
||||
uuid:
|
||||
specifier: ^10.0.0
|
||||
version: 10.0.0
|
||||
devDependencies:
|
||||
'@sveltejs/adapter-auto':
|
||||
specifier: ^3.0.0
|
||||
@@ -1106,6 +1109,10 @@ packages:
|
||||
resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==}
|
||||
engines: {node: '>= 0.4.0'}
|
||||
|
||||
uuid@10.0.0:
|
||||
resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}
|
||||
hasBin: true
|
||||
|
||||
vary@1.1.2:
|
||||
resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
|
||||
engines: {node: '>= 0.8'}
|
||||
@@ -2162,6 +2169,8 @@ snapshots:
|
||||
|
||||
utils-merge@1.0.1: {}
|
||||
|
||||
uuid@10.0.0: {}
|
||||
|
||||
vary@1.1.2: {}
|
||||
|
||||
vite@5.4.5:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import APIRoute from "../APIRoute";
|
||||
import APIRoute from "../APIRoute.js";
|
||||
|
||||
export default class UsersAPI extends APIRoute {
|
||||
constructor() {
|
||||
@@ -20,5 +20,13 @@ export default class UsersAPI extends APIRoute {
|
||||
|
||||
let db = req.app.get('mongo').users;
|
||||
|
||||
let result = await db.create({
|
||||
recipes: [],
|
||||
dietaryRestrictions: [],
|
||||
firstName: "String",
|
||||
lastName: "OtherString",
|
||||
email: ""
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
@@ -13,9 +13,6 @@ const UserSchema = new mongoose.Schema({
|
||||
firstName: String,
|
||||
lastName: String,
|
||||
email: String
|
||||
|
||||
|
||||
|
||||
}, { timestamps: true });
|
||||
|
||||
export default class Users {
|
||||
|
||||
Reference in New Issue
Block a user