Skip to content

Commit

Permalink
Merge pull request #52 from EdwinBetanc0urt/feature/change-menu-end-p…
Browse files Browse the repository at this point in the history
…oint

feat: Change end point `get-allowed-menu` to `menus`.
  • Loading branch information
yamelsenih authored Sep 6, 2024
2 parents 9d9203a + f03c667 commit 68324d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions docs/Open_Search.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 68324d0

Please sign in to comment.