mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
Add quest to API spec
+ Remove timestamps + Add 404 error handling
This commit is contained in:
1 parent
247c75ff84
commit
5e8115be11
3 files changed
+71
-10
No files matched your search
@@ -2,15 +2,12 @@ import { model, Schema } from 'mongoose'
|
||||
|
||||
const Quest = model(
|
||||
'Quest',
|
||||
new Schema(
|
||||
{
|
||||
name: String,
|
||||
title: String,
|
||||
order: Number,
|
||||
content: String,
|
||||
},
|
||||
{ timestamps: true }
|
||||
)
|
||||
new Schema({
|
||||
name: String,
|
||||
title: String,
|
||||
order: Number,
|
||||
content: String,
|
||||
})
|
||||
)
|
||||
|
||||
export default Quest
|
||||
Reference in new issue
Block a user