Change back to /upload

This commit is contained in:
2019-06-20 15:45:20 +02:00
parent aa905bff2d
commit b90a0a23ed
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ Environment variables are used to provide configuration.
Try it out:
curl localhost:8000/ -d 'some data' -v
curl localhost:8000/upload -d 'some data' -v
...
> PUT /uploads HTTP/1.1
> PUT /upload HTTP/1.1
...
< X-File-URL: https://uploads.paidit.se/59389abb021973a41d05e0d7d79949b17b83b142058a3704c98f274b6e563cfc403e64db6550f233
...
+1 -1
View File
@@ -22,7 +22,7 @@ http {
access_log off;
}
location ~* ^/ {
location ~* ^/upload {
if ($request_method = 'OPTIONS') {
# Tell client that this pre-flight info is valid for 20 days
add_header 'Access-Control-Allow-Origin' "*" ;