Skip to content

Defaulting to index.html #100

Closed
Closed
@syntaqx

Description

@syntaqx

Hey guys, pretty new to working with echo. Loving everything I'm seeing so far, but I ran into a very interesting issue that I thought might be worth taking a look at.

Consider the following:

e := echo.New()
e.Index("public/index.html")
e.Run(":8080")

Then, visiting http://localhost:8080 , you get a Forbidden response, only seeing the correct value when you visit http://localhost:8080/index.html

Maybe it's just my naive understanding of the proper way of doing this, but wouldn't it be ideal to allow the Index func to be able to properly serve index files (similar to DirectoryIndex in apache) rather than needing to wrap this in an additional func?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions