Skip to content

Commit

Permalink
revert some changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Jun 10, 2024
1 parent 9250ae4 commit b1285ac
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 58 deletions.
44 changes: 20 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,35 +106,31 @@ INFO [server] Server Address: "0.0.0.0:7878"
└──api
├──[OPTIONS] -> server::options_response
├──[GET] -> server::get_system_info
├──security/menus
│ ├──[OPTIONS] -> server::options_response
│ └──[GET] -> server::get_menu
└──dictionary
├──browsers/<id>
│ ├──[OPTIONS] -> server::get_browsers
│ └──[GET] -> server::get_browsers
├──browsers
│ ├──[OPTIONS] -> server::options_response
──[GET] -> server::get_browsers
│ └──<id>
├──[OPTIONS] -> server::options_response
└──[GET] -> server::get_browsers
│ ├──[OPTIONS] -> server::get_browsers
──[GET] -> server::get_browsers
├──forms/<id>
│ ├──[OPTIONS] -> server::get_forms
│ └──[GET] -> server::get_forms
├──forms
│ ├──[OPTIONS] -> server::options_response
──[GET] -> server::get_forms
│ └──<id>
├──[OPTIONS] -> server::options_response
└──[GET] -> server::get_forms
│ ├──[OPTIONS] -> server::get_forms
──[GET] -> server::get_forms
├──processes/<id>
│ ├──[OPTIONS] -> server::get_process
│ └──[GET] -> server::get_process
├──processes
│ ├──[OPTIONS] -> server::options_response
──[GET] -> server::get_process
│ └──<id>
├──[OPTIONS] -> server::options_response
└──[GET] -> server::get_process
│ ├──[OPTIONS] -> server::get_process
──[GET] -> server::get_process
├──windows/<id>
│ ├──[OPTIONS] -> server::get_windows
│ └──[GET] -> server::get_windows
└──windows
├──[OPTIONS] -> server::options_response
├──[GET] -> server::get_windows
└──<id>
├──[OPTIONS] -> server::options_response
└──[GET] -> server::get_windows

├──[OPTIONS] -> server::get_windows
└──[GET] -> server::get_windows
INFO [server] Kafka Consumer is enabled
INFO [server] Kafka queue: "0.0.0.0:29092"
INFO [server] Topics to Subscribed: ["menu", "browser", "form", "process", "window"]
Expand Down
11 changes: 1 addition & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/li
cargo install --config net.git-fetch-with-cli=true --path . && \
mv docker/.env /usr/local/cargo/bin/

FROM debian:bullseye-20240513
FROM debian:bullseye-20240423

ENV \
RUST_LOG="info" \
Expand Down Expand Up @@ -48,13 +48,4 @@ RUN apt-get update && \
echo "Set Timezone..." && \
echo $TZ > /etc/timezone

RUN addgroup adempiere && \
adduser --disabled-password --gecos "" --ingroup adempiere --no-create-home adempiere && \
chown -R adempiere /opt/apps/server/ && \
chmod +x /usr/local/bin/server && \
echo "Set Timezone..." && \
echo $TZ > /etc/timezone

USER adempiere

CMD ["server"]
48 changes: 24 additions & 24 deletions src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,53 +58,53 @@ async fn main() {
.push(
// /api/dictionary
Router::with_path("dictionary")
.push(
// /api/dictionary/browsers/:id
Router::with_path("browsers/<id>")
.options(options_response)
.get(get_browsers)
)
.push(
// /api/dictionary/browsers/
Router::with_path("browsers")
.options(options_response)
.get(get_browsers)
.push(
// /api/dictionary/browsers/:id
Router::with_path("<id>")
.options(options_response)
.get(get_browsers)
)
)
.push(
// /api/dictionary/forms/:id
Router::with_path("forms/<id>")
.options(options_response)
.get(get_forms)
)
.push(
// /api/dictionary/forms/
Router::with_path("forms")
.options(options_response)
.get(get_forms)
.push(
// /api/dictionary/forms/:id
Router::with_path("<id>")
.options(options_response)
.get(get_forms)
)
)
.push(
// /api/dictionary/processes/:id
Router::with_path("processes/<id>")
.options(options_response)
.get(get_process)
)
.push(
// /api/dictionary/processes
Router::with_path("processes")
.options(options_response)
.get(get_process)
.push(
// /api/dictionary/processes/:id
Router::with_path("<id>")
.options(options_response)
.get(get_process)
)
)
.push(
// /api/dictionary/windows/:id
Router::with_path("windows/<id>")
.options(options_response)
.get(get_windows)
)
.push(
// /api/dictionary/windows/
Router::with_path("windows")
.options(options_response)
.get(get_windows)
.push(
// /api/dictionary/windows/:id
Router::with_path("<id>")
.options(options_response)
.get(get_windows)
)
)
)
)
Expand Down

0 comments on commit b1285ac

Please sign in to comment.