Skip to content

Using r.Use causes middleware to be hit on every request #49

@SharkFourSix

Description

@SharkFourSix

When using the middleware as

app.Use(static.Serve())

Every request first hits the static middleware which causes errors to show up on in the logs indicating that the specified files do not exist.

Is there a better way to use the static middleware with its own middleware as well so it only gets hit when the request matches the url passed to the .Serve function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions