Skip to content

Add a default document names for the static method #3

Description

@hyingreborn

Add a default document names for the static method plz : "index.html"、"index.htm"、"default.html"、"default.htm"

server.go

app.Static("./public/static", "/static")

when i visit http://127.0.0.1:8080/static,Instead of 404, the contents of index.html are displayed by default

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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