浏览代码

chore(authz): update url type for authz schema

zhanghongtong 4 年之前
父节点
当前提交
32eabf041e
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 1 9
      apps/emqx_authz/src/emqx_authz_schema.erl

+ 1 - 9
apps/emqx_authz/src/emqx_authz_schema.erl

@@ -11,15 +11,7 @@
 
 -type action() :: publish | subscribe | all.
 -type permission() :: allow | deny.
--type url() :: #{
-    scheme := http | https,
-    host := string(),
-    port := non_neg_integer(),
-    path => string(),
-    query => string(),
-    fragment => string(),
-    userinfo => string()
-}.
+-type url() :: emqx_http_lib:uri_map().
 
 -export([ structs/0
         , fields/1