diff options
| author | Jacky Zhao <[email protected]> | 2020-05-10 17:12:23 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-10 17:12:23 -0700 |
| commit | 9c73e3ea82e9a00eecc49db8ee8f10ac030200bd (patch) | |
| tree | 78f9e2b49ef9ce266c58dad2d26b8fdce2db7ff9 /backend/db/schemas.go | |
| parent | Merge pull request #14 from jackyzha0/readme (diff) | |
| parent | Add auth check to get (diff) | |
| download | ctrl-v-9c73e3ea82e9a00eecc49db8ee8f10ac030200bd.tar.xz ctrl-v-9c73e3ea82e9a00eecc49db8ee8f10ac030200bd.zip | |
Merge pull request #12 from jackyzha0/backend
Update post to return hash and password
Diffstat (limited to 'backend/db/schemas.go')
| -rw-r--r-- | backend/db/schemas.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/backend/db/schemas.go b/backend/db/schemas.go index 62c5a11..4c73f82 100644 --- a/backend/db/schemas.go +++ b/backend/db/schemas.go @@ -8,9 +8,10 @@ import ( // Paste represents a single paste type Paste struct { - ID bson.ObjectId `bson:"_id,omitempty"` - Hash string - Content string - Expiry time.Time `bson:"expiry"` - Title string + ID bson.ObjectId `bson:"_id,omitempty"` + Hash string + Content string + Expiry time.Time `bson:"expiry"` + Title string + Password string } |