初始化项目文件

This commit is contained in:
2025-07-11 16:54:11 +08:00
parent 6bffd582a0
commit 39fedaac16
213 changed files with 16944 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package api
import (
"github.com/kataras/iris/v12"
)
func File(party iris.Party) {
party.Get("/upload", getRootFile)
party.Get("/upload/{path:path}", getFile)
party.Post("/upload/{path:path}", uploadDir)
party.Post("/upload-file/{path:path}", uploadFile)
party.Delete("/upload/{path:path}", deleteFile)
party.Post("/static/avatar", uploadAvatar)
party.Get("/download/{path:path}", downloadFile)
party.Get("/download-video-check/{path:path}", getDownloadFileType)
party.Get("/download-video/{path:path}", downloadVideo)
}