-
Notifications
You must be signed in to change notification settings - Fork 8
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
Serve public files from root instead of /pj and /pj/static #55
Conversation
cd7c613
to
83bcf39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I understand the what, but why? |
I keep getting caught out using the wrong paths for static files, (all the favicon paths had to be prefixed). On umbrel it'd be nice to be able to open up using IP:port, rather than see an error. Unless there's a reason to use Even further, would it be possible to get rid of the |
Keeping the home page on / makes the most sense unless we plan to add a different homepage In the future we can prefix our API paths too: |
Oh yeah, this is crazy. The folder should really be called |
83bcf39
to
5fafc1c
Compare
Keep the payjoin POST /pj and other endpoints the same. Now we don't have to prefix with /pj/static to use every file from html. Access the index page from the host without /pj. Match convention on umbrel with access at ip:port
5fafc1c
to
fa0144f
Compare
This does that now |
Because QR codes generate in the folder, it is not static. The name "public" is a rails convention for this folder that makes sense to me.
fa0144f
to
9aa1361
Compare
tACK |
Moves nolooking website from
/pj
to/
, while keeping the payjoin POST/pj
and other endpoints the same.