@@ -0,0 +1,26 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/infmtctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func infmtRoute(router *gin.RouterGroup) {
|
||||
infmt := router.Group("/infmt")
|
||||
{
|
||||
mail := infmt.Group("/mail")
|
||||
{
|
||||
mail.GET("/list", infmtctrl.MailList)
|
||||
mail.POST("/add", infmtctrl.MailAdd)
|
||||
mail.DELETE("/delete", infmtctrl.MailDel)
|
||||
}
|
||||
notice := infmt.Group("/notice")
|
||||
{
|
||||
notice.GET("/list", infmtctrl.NoticeList)
|
||||
notice.POST("/update", infmtctrl.NoticeUpdate)
|
||||
notice.POST("/add", infmtctrl.NoticeAdd)
|
||||
notice.DELETE("/delete", infmtctrl.NoticeDel)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user