bramus / bramus/router

"mount" one by one

Open
#156 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
1.1k
Forks
236
PR merge metrics
No merged PRs in 30d

Description

How do I use "mount" one by one? The last one cancels the previous one.

`$router->mount('/api/v1', function () use ($router) {});` doesn't work
`$router->mount('/api/v2', function () use ($router) {});` works

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the behavior using the two `$router->mount` calls shown in the issue, then inspect the router's mount handling and route registration entry points. Done means both `/api/v1` and `/api/v2` remain available instead of the second mount cancelling the first.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.