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

Fixed a routing issue with go embed #57

Merged
merged 1 commit into from
Aug 13, 2021
Merged

Fixed a routing issue with go embed #57

merged 1 commit into from
Aug 13, 2021

Conversation

isala404
Copy link
Owner

UI should to fully accessible via a port forwarding after this PR

fsys := fs.FS(content)
contentStatic, _ := fs.Sub(fsys, "build")
return http.FileServer(http.FS(contentStatic))
handler := fsFunc(func(name string) (fs.File, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed? FileServer has a more robust version of the same logic

@isala404 isala404 merged commit 3b6cd28 into main Aug 13, 2021
@isala404 isala404 deleted the ui/embed branch August 13, 2021 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants