mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-12-23 13:04:42 +00:00
Compare commits
5 Commits
v0.4.10
...
v0.4.12-al
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b251dc407 | ||
|
|
e4bf67dad5 | ||
|
|
e8f9d3aaf5 | ||
|
|
bb0d9ac25c | ||
|
|
3a835c00e3 |
19
.github/sync_openapi.yml
vendored
Normal file
19
.github/sync_openapi.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Sync OpenAPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
project-name:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
uses: IceWhaleTech/github/.github/workflows/sync_openapi.yml@main
|
||||||
|
with:
|
||||||
|
project-name: casaos
|
||||||
|
secrets:
|
||||||
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||||
19
.github/workflows/sync_openapi.yml
vendored
Normal file
19
.github/workflows/sync_openapi.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Sync OpenAPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
project-name:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
uses: IceWhaleTech/github/.github/workflows/sync_openapi.yml@main
|
||||||
|
with:
|
||||||
|
project-name: casaos
|
||||||
|
secrets:
|
||||||
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||||
@@ -2,7 +2,7 @@ package common
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
SERVICENAME = "casaos"
|
SERVICENAME = "casaos"
|
||||||
VERSION = "0.4.10"
|
VERSION = "0.4.12"
|
||||||
BODY = " "
|
BODY = " "
|
||||||
RANW_NAME = "IceWhale-RemoteAccess"
|
RANW_NAME = "IceWhale-RemoteAccess"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -257,7 +257,6 @@ func GetDownloadSingleFile(ctx echo.Context) error {
|
|||||||
ctx.Request().Header.Add("Content-Length", strconv.FormatInt(node.Size(), 10))
|
ctx.Request().Header.Add("Content-Length", strconv.FormatInt(node.Size(), 10))
|
||||||
}
|
}
|
||||||
http.ServeContent(ctx.Response().Writer, ctx.Request(), fileName, node.ModTime(), fi)
|
http.ServeContent(ctx.Response().Writer, ctx.Request(), fileName, node.ModTime(), fi)
|
||||||
// http.ServeFile(c.Writer, ctx.Request(), filePath)
|
|
||||||
defer fi.Close()
|
defer fi.Close()
|
||||||
fileTmp, err := os.Open(filePath)
|
fileTmp, err := os.Open(filePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -268,7 +267,7 @@ func GetDownloadSingleFile(ctx echo.Context) error {
|
|||||||
}
|
}
|
||||||
defer fileTmp.Close()
|
defer fileTmp.Close()
|
||||||
|
|
||||||
return ctx.File(filePath)
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Summary 获取目录列表
|
// @Summary 获取目录列表
|
||||||
|
|||||||
Reference in New Issue
Block a user