mirror of https://github.com/zer0bin-dev/zer0bin
feat: ✨ No longer need `/~/`
This commit is contained in:
parent
f4b827d1c6
commit
3378fa0aa3
|
@ -17,7 +17,7 @@ server {
|
|||
|
||||
root /location/of/zer0bin/frontend/dist;
|
||||
|
||||
rewrite ^/~/(.*)$ /index.html;
|
||||
rewrite ^/(?!.*api).*$ /index.html;
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
|
|
|
@ -155,7 +155,7 @@ async function savePaste() {
|
|||
if (err) {
|
||||
addMessage(err["data"]["message"])
|
||||
} else {
|
||||
window.history.pushState(null, "", `/~/${res["data"]["id"]}`)
|
||||
window.history.pushState(null, "", `/${res["data"]["id"]}`)
|
||||
|
||||
rawContent = res["data"]["content"]
|
||||
viewPaste(rawContent, "0")
|
||||
|
|
Loading…
Reference in New Issue