Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
qewer33 committed Dec 4, 2022
1 parent 0fd9979 commit ca759e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ A simple URL shortener built with Rust and Cloudflate Workers. It has four route

`/`: Shows message
`/:key`: This is the main route for shortened URLs. It responds with a redirect HTML page if the key is in the KV, shows a 404 page otherwise
`/create/:secret`: Adds a new key-value combination to the KV (request body should have a "key" and a "url" field), needs secret as a parameter
`/delete/:secret`: Deletes a key-value combination from the KV by key (request body should have a "key" field), needs secret as a parameter
`/create/:secret`: Adds a new key-value combination to the KV (request body should have a "key" and a "url" field), requires secret as a parameter
`/delete/:secret`: Deletes a key-value combination from the KV by key (request body should have a "key" field), requires secret as a parameter

```bash
# condifgure the SECRET
# configure the SECRET
wrangler secret put SECRET

# compiles project to WebAssembly
Expand Down

0 comments on commit ca759e9

Please sign in to comment.