67695da86b
fix: Use changed methods for rand
2025-03-03 18:44:42 -06:00
6f419c7b3d
new: Enforce ordering of data
...
Closes #46
Data is returned in order of id, which should match the order it was
inserted in. In the WebUI, the entries are shown in reverse, so the
latest link is at the top.
2025-03-03 12:27:59 -06:00
Solninja A
1047763285
chg: Bind server to port env variable
2025-01-18 12:52:19 +10:00
Solninja A
17d0df943b
Correctly output created link
2025-01-14 17:20:41 +10:00
a60853fd21
fix: Only pull hits when needed
2025-01-09 00:21:05 +05:30
2b9fafe440
new: Got the expand API path working
...
It replies with info for a single shortlink. May be useful for
applications using json interface.
2025-01-08 20:09:24 +05:30
16bc211f9f
fix: Confirm when secure API key is provided
2025-01-06 11:48:18 +05:30
cba667ded8
chg: Small cosmetic change
2025-01-06 11:40:20 +05:30
eb4f05a87b
fix: Disregard empty Site URL
2025-01-06 11:11:09 +05:30
f1c1642976
chg: Small semantic changes
2025-01-05 16:20:38 +05:30
Solninja A
eed3c2292a
Cleaned up code
2025-01-03 00:28:51 +10:00
Solninja A
4fb8d0cb5c
Edited the API Key header to comply with OpenAPI v3 specs
2025-01-03 00:25:55 +10:00
Solninja A
9a0cdec646
Improved API error codes
2025-01-01 19:08:35 +10:00
Solninja A
818dadb84f
Made code more Rust-like
2025-01-01 17:34:09 +10:00
Solninja A
6347a89725
Minor code clean up
2024-12-31 20:30:55 +10:00
Solninja A
1ef5d539d5
Improve API error handling
2024-12-31 19:54:22 +10:00
Solninja A
5c2886f651
Changes the API to use JSON data and results
2024-12-31 19:11:47 +10:00
Solninja A
2c56c68637
Improves API functionality
2024-12-31 16:19:20 +10:00
06f7a33d5d
fix: Do not consider empty password
2024-10-02 23:52:23 -05:00
3688692c7a
chg: Default db location
2024-10-02 23:46:35 -05:00
9fc8634704
fix: Typo during reading slug_length, fixes #24
2024-06-20 20:46:26 -05:00
96495b037d
new: Made the Cache-Control headers fully configurable
2024-05-31 20:30:09 -05:00
8ff4c3f24f
chg: Make the Cache-Control header configurable
2024-05-31 01:41:55 -05:00
eab1c9bc73
new: Added cache-control header, fixes #22
2024-05-31 01:24:33 -05:00
0b50a7c261
chg: Move all the services into their own file
2024-05-30 14:45:18 -05:00
00ade1af40
fix: Do not allow empty values for db_url or site_url
2024-05-29 10:40:51 -05:00
0fce881654
new: Got public mode working, testing needed
2024-05-28 18:16:58 -05:00
b1c4142296
chg: Reply when shortlink cannot be added
2024-05-06 16:49:01 -05:00
5ac822d5f9
fix: Middleware order
2024-04-11 13:01:33 -05:00
931b4a95e4
chg: Added SPDX headers
2024-04-03 20:40:26 -05:00
cdc3508a0c
chg: Added use std::io::Result
2024-04-03 17:40:59 -05:00
e742c0ab5e
fix: Use proper HTTP response codes
2024-04-03 16:19:39 -05:00
e9bb9d0b65
new: Use samesite cookies
2024-04-02 18:07:29 -05:00
ca14c02e70
docs: Added some comments and changed the token name
2024-04-02 17:57:49 -05:00
0469f9b933
chg: Get rid of naked unwraps and improve code flow
2024-04-02 17:43:36 -05:00
604e95aa9c
chg: More readable response when not logged in
2024-04-01 00:58:18 -05:00
38b817fdf8
new: Proper reply when invalid data is sent
2024-03-31 21:23:22 -05:00
34518affaf
chg: Changed some struct names
2024-03-31 16:07:33 -05:00
f2b5e1ab6d
chg: Use json for sending url list
2024-03-31 15:38:59 -05:00
99b5298cd8
chg: Use json while sending form for new url
2024-03-31 15:17:54 -05:00
6c7ca8d0ac
fix: slug_style options are consistent now
2024-03-31 00:59:05 -05:00
599b013fc9
chg: Change uid to UID
2024-03-31 00:51:32 -05:00
088cd594a5
chg: Change the env_var name
2024-03-31 00:45:29 -05:00
f9e642275a
new: Support uid slug
2024-03-31 00:38:42 -05:00
f526e7ec5b
chg: 404 response doesn't change the url
2024-03-28 13:27:33 -05:00
5d8dd6fb63
chg: Use Option instead of returning empty String
2024-03-26 23:52:24 -05:00
5ecd29926d
chg: Added some checks during deletion of a shortlink
2024-03-13 18:59:10 -05:00
0bfaa49e7b
fix: Wrong regex in validate_link, fixes #6
2024-03-10 18:18:07 -05:00
95a8263797
new: Show version number
2024-02-10 19:41:50 -06:00
f6255566b0
chg: Allow insecure cookies
2023-10-08 18:20:34 -05:00