mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-01 06:10:26 +08:00
feat: post messenger
This commit is contained in:
@ -2,6 +2,7 @@ package server
|
||||
|
||||
import (
|
||||
"github.com/alist-org/alist/v3/internal/conf"
|
||||
"github.com/alist-org/alist/v3/internal/message"
|
||||
"github.com/alist-org/alist/v3/server/common"
|
||||
"github.com/alist-org/alist/v3/server/controllers"
|
||||
"github.com/alist-org/alist/v3/server/middlewares"
|
||||
@ -68,6 +69,10 @@ func Init(r *gin.Engine) {
|
||||
task.GET("/copy/done", controllers.DoneCopyTask)
|
||||
task.POST("/copy/cancel", controllers.CancelCopyTask)
|
||||
|
||||
ms := admin.Group("/message")
|
||||
ms.GET("/get", message.PostInstance.GetHandle)
|
||||
ms.POST("/send", message.PostInstance.SendHandle)
|
||||
|
||||
// guest can
|
||||
public := api.Group("/public")
|
||||
public.GET("/settings", controllers.PublicSettings)
|
||||
|
Reference in New Issue
Block a user