fix: 修复服务端请求head返回404的问题
This commit is contained in:
1 parent
081b724513
commit
81360c377c
2 files changed
+7
No files matched your search
@@ -8,11 +8,17 @@ cp -r ./dist/* ./src-server/web/
|
||||
|
||||
cd ./src-server
|
||||
|
||||
echo "building amd64 win"
|
||||
|
||||
go env -w GOOS=windows GOARCH=amd64
|
||||
go build -o ../miao-directory-amd64-win.exe
|
||||
|
||||
echo "building amd64 linux"
|
||||
|
||||
go env -w GOOS=linux GOARCH=amd64
|
||||
go build -o ../miao-directory-amd64-linux
|
||||
|
||||
# go env -w GOOS=linux GOARCH=arm64
|
||||
# go build -o ../miao-directory-arm64-linux
|
||||
|
||||
echo "build finish"
|
||||
@@ -31,6 +31,7 @@ func main() {
|
||||
|
||||
router.GET("/query", api.QueryHandler(fsOperateEventCenter))
|
||||
router.GET("/get/*path", api.GetHandler)
|
||||
router.HEAD("/get/*path", api.GetHandler)
|
||||
router.POST("/mkdir/*path", api.MkdirHandler)
|
||||
router.POST("/upload/*path", api.UploadHandler)
|
||||
router.POST("/cut/*path", api.CutHandler(fsOperateEventCenter))
|
||||
|
||||
Reference in new issue
Block a user