MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / StatelessCreateFile

Function StatelessCreateFile

routers/controllers/slave.go:292–301  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

290}
291
292func StatelessCreateFile(c *gin.Context) {
293 service := ParametersFromContext[*fs.StatelessCreateFileService](c, node.StatelessCreateFileParamCtx{})
294 if err := node.StatelessCreateFile(service, c); err != nil {
295 c.JSON(200, serializer.Err(c, err))
296 c.Abort()
297 return
298 }
299
300 c.JSON(200, serializer.Response{})
301}

Callers

nothing calls this directly

Calls 3

StatelessCreateFileFunction · 0.92
ErrFunction · 0.92
ParametersFromContextFunction · 0.85

Tested by

no test coverage detected