Skip to content

Added wildcard feature#586

Open
dharshan-0 wants to merge 8 commits into
cot-rs:masterfrom
dharshan-0:wildcard-feature
Open

Added wildcard feature#586
dharshan-0 wants to merge 8 commits into
cot-rs:masterfrom
dharshan-0:wildcard-feature

Conversation

@dharshan-0
Copy link
Copy Markdown

@dharshan-0 dharshan-0 commented Jun 3, 2026

Related issue or discussion

Description

It closes #545 by adding wildcard routing feature.

It uses this *param_name to define wildcard.

Route::with_handler_and_name("/random/*path", generate_random, "generate-random"),

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / cleanup
  • Performance improvement
  • Other (describe above)

Checklist

  • I've read the contributing guide
  • Tests pass locally (just test-all)
  • Code passes clippy (just clippy)
  • Code is properly formatted (cargo fmt)
  • New tests added (regression test for bugs, coverage for new features)
  • Documentation (both code and site) updated (if applicable)

@github-actions github-actions Bot added A-docs Area: Documentation C-lib Crate: cot (main library crate) labels Jun 3, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
rust 90.29% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot/src/router/path.rs 99.71% <100.00%> (+0.07%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-docs Area: Documentation C-lib Crate: cot (main library crate)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Wildcard in Routes

1 participant