feat: No longer need `/~/`

This commit is contained in:
ThatOneCalculator 2022-03-19 17:25:29 -07:00
parent f4b827d1c6
commit 3378fa0aa3
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ server {
root /location/of/zer0bin/frontend/dist;
rewrite ^/~/(.*)$ /index.html;
rewrite ^/(?!.*api).*$ /index.html;
location / {
index index.html;

View File

@ -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")