Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Support custom extension for url #25

Merged
merged 5 commits into from
Sep 6, 2023
Merged

Support custom extension for url #25

merged 5 commits into from
Sep 6, 2023

Conversation

adrianEffe
Copy link
Owner

for instance by running:

curl --verbose \
  --header "Content-Type: application/json" \
  --request POST \
  --data '{"url":"https://www.rust-lang.net","extension":"rust"}' \
  http://127.0.0.1:8000/shorten

and then calling:

curl --verbose \
  --header "Content-Type: application/json" \
  "http://127.0.0.1:8000/rust"

should redirect to https://www.rust-lang.net

@adrianEffe adrianEffe merged commit 9abb4b0 into master Sep 6, 2023
4 checks passed
@adrianEffe adrianEffe deleted the feature/add-shuttle branch September 6, 2023 11:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant