Moved middleware/ & schemas/ into api/.

This commit is contained in:
2020-11-24 23:34:13 +01:00
parent 036f6ea499
commit 236c07f3d0
13 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const Subscription = new Schema({
endpoint: String,
expirationTime: Number,
keys: {
p256dh: String,
auth: String
}
});
module.exports = mongoose.model("Subscription", Subscription);