* new: Periodically do wal checkpoints during cleanup
* docs: Added spdx header in quadlet
* chg: More sensible names for auth functions
* chg: Use Results in edit, add, and delete routes
This would increase reabability and make more semantic sense.
* chg: Moved is_api_ok to auth
It makes more sense to keep it there
* fix: Changed comments and changed a function name to make semantic sense
* chg: find_url and find_and_add_hit now use Result
* chg: Some reorganizing
* fix: Do not use expect unless absolutely necessary
Basically, unless there's some unrecoverable error, or something that's
guaranteed not to happen, do not use expect.
There is quite a bit of caching for performance improvements.
This should lower the number of API calls made. We're only caching text,
so this shouldn't cause any issues in any modern browser. (Modern
meaning anything built in the last decade or so.)
* new: Added support for pagination in the backend
No page no means all results are returned. Page no starts at 1, so <=0
values are ignored. Floating point values will results in 400 errors.
Same rules are held for page size.
If page no is provided, but no page size is provided, a default value of
10 is used.
* fix: Ignore empty RUST_LOG entries
* fix: Ordering of pages
* chg: Always keep row name in left of comparison
Improves readability
* new: Alternative cursor based pagination
Also, made all queries more explicit, and hence intentional.
* test: Added tests for both types of pagination
For the main chhoto url app page - with a long list of links , the expected behaviour for opening on links is for them to be opened in a new tab / window. this behaviour is in line with other url shorteners in the market.
* feat: add address env var for bind address
Closes#93
* chg: Renamed variable and added a check
* docs: Added info about listen_address in INSTALLATION.md
* fix: Match variable name for cleaner code
---------
Co-authored-by: SinTan1729 <sayantan.santra689@gmail.com>