Skip to content

Add dynamic sitemap.xml endpoint and routing - #28

Merged
preetkaran20 merged 1 commit into
mainfrom
issues-21-22-mongodb-nosql-workflows
Sep 18, 2026
Merged

preetkaran20 merged 1 commit into
mainfrom
issues-21-22-mongodb-nosql-workflows

Conversation

@preetkaran20

@preetkaran20 preetkaran20 commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add dynamic sitemap endpoint at /VulnerableApp-php/sitemap.xml
  • map sitemap route in bootstrap
  • normalize router path parsing to ignore query strings for route matching

Validation

  • verified endpoint returns XML sitemap with mapped routes

Summary by CodeRabbit

  • New Features

    • Added a sitemap endpoint that generates XML containing the application’s available routes.
    • Sitemap URLs are deduplicated, sorted, and generated using the detected application base URL.
  • Bug Fixes

    • Improved request routing by using only the URL path, helping routes resolve correctly when query parameters are present.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5f4b67bb-cf93-4f2d-9c1c-bded9476e89c

📥 Commits

Reviewing files that changed from the base of the PR and between b3cc5ce and 28039b5.

📒 Files selected for processing (3)
  • src/Scanner/Sitemap.php
  • src/framework/Bootstrap.php
  • src/router/Router.php
 ________________________________________________________________________________________________________________________
< Don't assume it - prove it. Prove your assumptions in the actual environment - with real data and boundary conditions. >
 ------------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@preetkaran20
preetkaran20 merged commit e0e0c82 into main Sep 18, 2026
1 of 2 checks passed
@preetkaran20
preetkaran20 deleted the issues-21-22-mongodb-nosql-workflows branch September 18, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant