20 lines
384 B
Go
20 lines
384 B
Go
package handler
|
|
|
|
import (
|
|
"mstore/app/operator"
|
|
"mstore/app/router"
|
|
)
|
|
|
|
func (hand *Handler) FileExists(rctx *router.Context) {
|
|
hand.logg.Debugf("handle FileExists")
|
|
|
|
filepath := rctx.PathMap["filepath"]
|
|
params := &operator.FileExistsParams{
|
|
Filepath: filepath,
|
|
}
|
|
hand.logg.Debugf("filepath: %s", filepath)
|
|
|
|
code, _, _ := hand.oper.FileExists(params)
|
|
rctx.SetStatus(code)
|
|
}
|