summaryrefslogtreecommitdiff
path: root/router/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'router/router.go')
-rw-r--r--router/router.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/router/router.go b/router/router.go
index 8c08a7b..583b10f 100644
--- a/router/router.go
+++ b/router/router.go
@@ -1,7 +1,7 @@
/*
* @Author: EnderByEndera
* @Date: 2020-12-23 13:17:08
- * @LastEditTime: 2021-01-19 12:06:31
+ * @LastEditTime: 2021-02-01 06:27:01
* @LastEditors: Please set LastEditors
* @Description: router.go defines gin.Engine and its router
* @FilePath: /commdetection/route/router.go
@@ -96,6 +96,11 @@ func manageRouter() {
pathr.POST("/set", setPathrulesEndpoint)
pathr.GET("/get", getPathrulesEndpoint)
}
+ usiter := router.Group("/websiterules")
+ {
+ usiter.POST("/set", setWebsiteRuleEndpoint)
+ usiter.GET("/get", getWebsiteRuleEndpoint)
+ }
rsr := router.Group("/rules")
{
rsr.POST("/set", setEvaluationRulesEndpoint)