feat(direct link): add option to get direct link with download enforced (#2651)
This commit is contained in:
@@ -245,7 +245,10 @@ func initMasterRouter(dep dependency.Dep) *gin.Engine {
|
||||
{
|
||||
source.GET(":id/:name",
|
||||
middleware.HashID(hashid.SourceLinkID),
|
||||
controllers.AnonymousPermLink)
|
||||
controllers.AnonymousPermLink(false))
|
||||
source.GET("d/:id/:name",
|
||||
middleware.HashID(hashid.SourceLinkID),
|
||||
controllers.AnonymousPermLink(true))
|
||||
}
|
||||
|
||||
shareShort := r.Group("s")
|
||||
|
||||
Reference in New Issue
Block a user