diff --git a/README.md b/README.md index 09f0260..47fe49e 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ INFO [server] └──!NULL! └──api ├──[OPTIONS] -> server::options_response ├──[GET] -> server::get_system_info - ├──security/get-allowed-menu + ├──security/menus │ ├──[OPTIONS] -> server::options_response │ └──[GET] -> server::get_allowed_menu └──dictionary diff --git a/docs/Open_Search.json b/docs/Open_Search.json index d13fa4c..eb42d50 100644 --- a/docs/Open_Search.json +++ b/docs/Open_Search.json @@ -14,14 +14,14 @@ "method": "GET", "header": [], "url": { - "raw": "{{host}}/api/security/get-allowed-menu?language=es_MX&client_id=2433705d-bb00-4bcd-af7b-38046a92e157&role_id=c7fd72e4-ef03-4294-8889-40da400a472f", + "raw": "{{host}}/api/security/menus?language=es_MX&client_id=2433705d-bb00-4bcd-af7b-38046a92e157&role_id=c7fd72e4-ef03-4294-8889-40da400a472f", "host": [ "{{host}}" ], "path": [ "api", "security", - "get-allowed-menu" + "menus" ], "query": [ { @@ -51,14 +51,14 @@ "method": "GET", "header": [], "url": { - "raw": "{{host}}/api/security/get-allowed-menu?language=es_MX&client_id=2433705d-bb00-4bcd-af7b-38046a92e157&role_id=c7fd72e4-ef03-4294-8889-40da400a472f", + "raw": "{{host}}/api/security/menus?language=es_MX&client_id=2433705d-bb00-4bcd-af7b-38046a92e157&role_id=c7fd72e4-ef03-4294-8889-40da400a472f", "host": [ "{{host}}" ], "path": [ "api", "security", - "get-allowed-menu" + "menus" ], "query": [ { @@ -128,14 +128,14 @@ "method": "GET", "header": [], "url": { - "raw": "{{host}}/api/security/get-allowed-menu?language=es_MX&dictionary_code=official&client_id=2433705d-bb00-4bcd-af7b-38046a92e157&role_id=c7fd72e4-ef03-4294-8889-40da400a472f", + "raw": "{{host}}/api/security/menus?language=es_MX&dictionary_code=official&client_id=2433705d-bb00-4bcd-af7b-38046a92e157&role_id=c7fd72e4-ef03-4294-8889-40da400a472f", "host": [ "{{host}}" ], "path": [ "api", "security", - "get-allowed-menu" + "menus" ], "query": [ { diff --git a/src/bin/server.rs b/src/bin/server.rs index 966d371..da1fafc 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -82,8 +82,8 @@ fn routes() -> Router { .options(options_response) .get(get_system_info) .push( - // /api/security/get-allowed-menu - Router::with_path("security/get-allowed-menu") + // /api/security/menus + Router::with_path("security/menus") .options(options_response) .get(get_allowed_menu) )