Skip to content

How can i correctly return static files #108

Description

@0xAX

Hello,

I have standard erlang directory structure. In priv directory i have js dir with javascript files and index.html - main page.

I started misultin:

misultin:start_link([{port, 2000}, {static, "/home/user/testproject/priv/"},
{loop, fun(Req) -> handle_http(Req) end}]),

Now what i must write in handle_http to return index.html with correctly loaded js files?

Thank you.

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