26 lines
923 B
Go
26 lines
923 B
Go
package router
|
|
|
|
import (
|
|
"videoweb/web/api/web_translation"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func translationRouter(router *gin.RouterGroup) {
|
|
translation := router.Group("/translation")
|
|
{
|
|
translation.POST("/list", web_translation.GetTranslation)
|
|
translation.POST("/update", web_translation.UpdateOnetTranslation)
|
|
translation.POST("/del", web_translation.DelOnetTranslation)
|
|
translation.POST("/add", web_translation.AddOnetTranslation)
|
|
}
|
|
translationcategory := router.Group("/translationcategory")
|
|
{
|
|
translationcategory.POST("/home-more/options", web_translation.ListHomeMoreOptions)
|
|
translationcategory.POST("/list", web_translation.GetTranslationCategory)
|
|
translationcategory.POST("/update", web_translation.UpdateOnetTranslationCategory)
|
|
translationcategory.POST("/del", web_translation.DelOnetTranslationCategory)
|
|
translationcategory.POST("/add", web_translation.AddOnetTranslationCategory)
|
|
}
|
|
}
|