rustypaste/src
Andy Baird d0a67751dc
feat(server): add an endpoint for retrieving a list of files (#94)
* Start

* Wip

* Implement path based JSON index

* Remove json_index_path

* Return datetime stamp instead of relative time

* Add file size to list item

* Add auth check when retrieving JSON index

* Make json index path hardcoded

* Test (currently failing)

* Fix test for test_json_list

* Clippy fix

* Revert cargo to original versions with only needed changes

* Add detail about auth guard affecting list route

* Change json_index_path to expose_list

* Remove unneeded linebreak

* Remove unnecessary import

* Remove unnecessary space at end of line

* Move config check after auth check

* Use new auth check syntax, add docs to struct, rename test_json_list to test_list

* Replace chrono usage with uts2ts

* Check list result in test

* Add example to README

* Upgrade serde_json to 1.0.103

* Add linebreak

* Remove unneeded clone

* Remove extra nl

* Update README.md

* Update README.md

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>

* Update README.md

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>

* Remove serde_json

* Set default config to false for expose_list

* Apply suggestions from code review

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>

* Check that option is value in test_list

* Update Cargo.toml

Co-authored-by: Helmut K. C. Tessarek <tessarek@evermeet.cx>

* Update cargo.lock

* Use expect() to check file name

* Remove underscore from list item struct

* Keep comma after last line

* refactor(server): rename ListItem fields

* test(fixtures): add fixture test for listing files

* test push

* remove file again

* chop off ts from filename and minor refactor

* update README

* docs(readme): fix capitalization

* refactor(server): clean up list implementation

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
Co-authored-by: Helmut K. C. Tessarek <tessarek@evermeet.cx>
2023-08-07 12:55:13 +02:00
..
auth.rs style(server): add new line char to most prominent messages (#97) 2023-07-22 10:12:04 +02:00
config.rs feat(server): add an endpoint for retrieving a list of files (#94) 2023-08-07 12:55:13 +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 feat(server): support multiple auth tokens (#84) 2023-07-21 12:28:17 +02: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 feat(server): add an endpoint for retrieving a list of files (#94) 2023-08-07 12:55:13 +02:00
util.rs feat(server): support one shot URLs (#46) 2023-05-28 22:09:14 +02:00