Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dir function not working #31

Open
AritraBanik08 opened this issue Sep 11, 2023 · 2 comments
Open

dir function not working #31

AritraBanik08 opened this issue Sep 11, 2023 · 2 comments

Comments

@AritraBanik08
Copy link

The dir function is not working at all. What should I do to make it work?
`import asynchttpserver, asyncdispatch, httpcore, rosencrantz
import rosencrantz/staticsupport

let handler = get[
path("/")[
ok("Namaste India!")
] ~
pathChunk("/static")[
dir("public")
]
]

let server = newAsyncHttpServer()

waitFor server.serve(Port(8080), handler)`

@andreaferretti
Copy link
Owner

Hi @AritraBanik08 , what do you mean by "is not working at all"?

I just ran the test for this function here and it passes along with all other tests. Do you have a more specific issue?

@AritraBanik08
Copy link
Author

Thank you very much for your help and it is a great framework you have written. And thank you again for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants