You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/06/19 04:16:45 UTC

[incubator-apisix-dashboard] branch master updated: add priority in route (#273)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new ded2666  add priority in route (#273)
ded2666 is described below

commit ded2666cd36385db2fd0e91f2d7f816915bb890e
Author: kv <gx...@163.com>
AuthorDate: Fri Jun 19 12:16:35 2020 +0800

    add priority in route (#273)
---
 api/service/route.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/api/service/route.go b/api/service/route.go
index ea8033d..a0ea933 100644
--- a/api/service/route.go
+++ b/api/service/route.go
@@ -80,6 +80,7 @@ func (rd *Route) Parse(r *RouteRequest, arr *ApisixRouteRequest) error {
 	}
 	timestamp := time.Now().Unix()
 	rd.CreateTime = timestamp
+	rd.Priority = r.Priority
 	return nil
 }