rustypaste/src
Helmut K. C. Tessarek 62bbfef6a3
feat(server): add random suffix mode (#69)
* add random suffix mode

* fix linter issues

* add test case

* fix linter issues

* add comments, remove empty lines and single line declarations

* more test cases

* refactor(config): rename suffix_mode to random_suffix

* refactor(paste): clean up the random suffix logic

* chore(config): add random suffix example to default config

* docs(readme): mention random suffix feature

* test(fixtures): add fixture test for random suffix mode

* random_suffix -> suffix_mode

* fix default extension for .dotfile w/o extension

* fix formatting

* style(format): fix the indentation for random suffix fixture

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-07-01 00:11:16 +02:00
..
auth.rs chore(deps): upgrade actix dependencies 2022-03-17 15:46:32 +03:00
config.rs refactor(config): use a separate section for the landing page (#65) 2023-06-23 17:20:24 +02:00
file.rs fix(lints): apply clippy suggestions for tests 2022-05-16 12:58:41 +03:00
header.rs feat(server): support server-side default expiry time 2023-05-14 01:30:35 +03:00
lib.rs feat(server): implement middleware for limiting the content length (#53) 2023-06-05 22:49:26 +03:00
main.rs fix(deploy): use the static folder for config (#70) 2023-06-23 18:33:05 +03:00
middleware.rs refactor(middleware): polish the ContentLengthLimiter implementation 2023-06-05 23:02:10 +03:00
mime.rs fix(lints): apply clippy suggestions for tests 2022-05-16 12:58:41 +03:00
paste.rs feat(server): add random suffix mode (#69) 2023-07-01 00:11:16 +02:00
random.rs feat(server): add random suffix mode (#69) 2023-07-01 00:11:16 +02:00
server.rs style(server): add new line character to 404 message (#72) 2023-06-27 15:08:46 +02:00
util.rs feat(server): support one shot URLs (#46) 2023-05-28 22:09:14 +02:00