Skip to content

Commit

Permalink
Fix warp routing and add error messages. Use tabs
Browse files Browse the repository at this point in the history
Spelling and other small cleanup
  • Loading branch information
mirdaki committed Jul 11, 2022
1 parent 0c2e642 commit 4e2eb66
Show file tree
Hide file tree
Showing 7 changed files with 363 additions and 412 deletions.
11 changes: 9 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"vadimcn.vscode-lldb",
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"Gruntfuggly.todo-tree",
"hbenl.vscode-test-explorer",
"matklad.rust-analyzer",
"ms-vscode.test-adapter-converter",
"oderwat.indent-rainbow",
"serayuzgur.crates",
"Swellaby.vscode-rust-test-adapter",
"tamasfe.even-better-toml",
"serayuzgur.crates"
"vadimcn.vscode-lldb"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.env
1 change: 1 addition & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hard_tabs = true
160 changes: 47 additions & 113 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"

[dependencies]
tokio = { version = "1", features = ["full"] }
warp = "0.3.1"
warp = "0.3.2"
regex = "1.5.4"
dotenv = "0.15.0"
substring = "1.4.5"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# URShort

A blazingly fast and amazingly simple URL shortner designed for use by a single person.
A blazingly fast and amazingly simple URL shortener designed for use by a single person.

Steps:
1. [X] Get a simple redirect working
2. [X] Work with multiple simple redirects
3. [ ] Load multiple simple redirects from file
3. [X] Load multiple simple redirects from file
4. [X] Get pattern redirects working
5. [ ] Load multiple pattern from file
- [ ] Make 404 fallback
- [X] Make 404 fallback
6. [X] Get short URL request working
- Vanity, pattern, or consistent hash
- ~~Limit to allowed domains (both the hashes and the requester)~~
Expand Down
Loading

0 comments on commit 4e2eb66

Please sign in to comment.