Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: ignore registered route #8

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Conversation

matheush9
Copy link
Contributor

Eu precisava que fosse associada uma rota para servir arquivos, invés de servir direto ao chamar o /.

Se eu informasse a rota o server-static iria considerar que essa rota fazia parte do caminho do diretório:

 THorse.Use('files', ServerStatic(RootFolder));

Então eu fiz a fix para ignorar a rota registrada. Podemos usar assim agora:

THorse.Use('files', ServerStatic(RootFolder, 'files'));

@cachopaweb cachopaweb merged commit 9fb83e9 into cachopaweb:master Apr 26, 2024
@cachopaweb
Copy link
Owner

Thanks for the contribution

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

Successfully merging this pull request may close these issues.

2 participants