Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Add support for custom path bases #9

@poke

Description

@poke

When you do app.UsePathBase("/foo") the whole app basically runs at the subpath /foo. So the sitemap at /foo/sitemap.xml should generate paths that respect that path base.

This would usually be super simple, but the middleware is registered using applicationBuilder.Map(…). And the way the MapMiddleware works is by adjusting the path base itself.

So we have to change the way we are matching the path and will likely have to do that within the middleware itself instead. But doing that will actually help us with #5 so we can serve different endpoints later.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions