actix / actix/actix-web

Apply middleware(s) to group of routes without prefix

Open
#414 13 comments 13 reactions 1 assignee Claimed by @robjtede View on GitHub
A-web C-improvement
Dominant language
Rust
Stars
24.8k
Forks
1.9k
Avg merge
23h 10m
Merged PRs (30d)
26

Description

I have set of routes that need to pass through group of middlewares. I tried to use route scopes but it requires prefix to be applied as well. I'm looking for feature like in laravel [route groups ](https://laravel.com/docs/5.6/routing#route-groups)

eg.
public routes:
/login

private routes:
/dashboard
/users/**
/activities/**
/logout

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.