Skip to content

StaticFileRouteHandler for local directory or image file #136

@robp2175

Description

@robp2175

What I would like to do is basically be able to go to http://ipaddress:8800/docs and access a local directory serving html files. c:\httpdocs for example.

I have been looking at StaticFileRouteHandler.cs trying to figure out how I might be able to accomplish this.

I tried something as simple as
.RegisterRoute(new StaticFileRouteHandler(@"c:\\httpdocs"))

, but that did not work. My c# abilities are lacking. If anyone could provide some direction, I would greatly appreciate it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions