Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ set -Cue

EXAMPLES=$(pwd)

# First, check the buildability of all examples
for directory in ./*/; do
if [ "$(basename $directory)" != "target" ]; then
cd $directory
cargo check
cd ..
fi
done

# Now, run tests for each example if needed

cd $EXAMPLES/static_files && \
cargo test

Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async fn main() {
}

Ohkami::new((Logger,
"/".Dir("./template").omit_extensions([".html"]),
"/".Dir("./template").omit_extensions(&[".html"]),
"/echo1".GET(echo_text),
"/echo2/:name".GET(echo_text_2),
"/echo3/:name".GET(echo_text_3),
Expand Down