Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Illusionna/LocalTransfer
/ UpdateShareHandler
Function
UpdateShareHandler
utils.go:147–153 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
145
}
146
147
func
UpdateShareHandler() {
148
CURRENT_HANDLER = AuthorizeShareFileMiddleware(
149
http.StripPrefix(
150
"/api/share/"
, http.FileServer(http.Dir(SHARE_DIR)),
151
),
152
)
153
}
154
155
156
// 把字节转化成常见的单位.
Callers
2
RegisterRouter
Function · 0.85
SynchronizeSettings
Method · 0.85
Calls
1
AuthorizeShareFileMiddleware
Function · 0.85
Tested by
no test coverage detected