更新文章推送界面
This commit is contained in:
@@ -34,6 +34,10 @@ func main() {
|
||||
|
||||
// 3. 图片上传接口
|
||||
r.POST("/api/upload/image", uploadImageHandler)
|
||||
r.POST("/api/upload/cover", func(c *gin.Context) {
|
||||
// 直接复用已有的上传逻辑
|
||||
uploadImageHandler(c)
|
||||
})
|
||||
|
||||
// 4. 启动服务
|
||||
fmt.Println("后端服务启动成功,地址:http://localhost:8080")
|
||||
|
||||
Reference in New Issue
Block a user