Change back to /upload
This commit is contained in:
@@ -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
@@ -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' "*" ;
|
||||
|
||||
Reference in New Issue
Block a user