Feat: delete objects

This commit is contained in:
HFO4 committed 2019-11-30 15:09:56 +08:00
1 parent 0cbbe5bb79
commit 93010e3525
26 files changed
+398 -55

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ func Session(secret string) gin.HandlerFunc {
}
// Also set Secure: true if using SSL, you should though
// TODO:same-site policy
Store.Options(sessions.Options{HttpOnly: true, MaxAge: 7 * 86400, Path: "/"})
return sessions.Sessions("cloudreve-session", Store)
}