Commit Graph

48 Commits

Author SHA1 Message Date
SinTan1729
5ac822d5f9
fix: Middleware order 2024-04-11 13:01:33 -05:00
SinTan1729
931b4a95e4
chg: Added SPDX headers 2024-04-03 20:40:26 -05:00
SinTan1729
cdc3508a0c
chg: Added use std::io::Result 2024-04-03 17:40:59 -05:00
SinTan1729
e742c0ab5e
fix: Use proper HTTP response codes 2024-04-03 16:19:39 -05:00
SinTan1729
e9bb9d0b65
new: Use samesite cookies 2024-04-02 18:07:29 -05:00
SinTan1729
ca14c02e70
docs: Added some comments and changed the token name 2024-04-02 17:57:49 -05:00
SinTan1729
0469f9b933
chg: Get rid of naked unwraps and improve code flow 2024-04-02 17:43:36 -05:00
SinTan1729
604e95aa9c
chg: More readable response when not logged in 2024-04-01 00:58:18 -05:00
SinTan1729
38b817fdf8
new: Proper reply when invalid data is sent 2024-03-31 21:23:22 -05:00
SinTan1729
34518affaf
chg: Changed some struct names 2024-03-31 16:07:33 -05:00
SinTan1729
f2b5e1ab6d
chg: Use json for sending url list 2024-03-31 15:38:59 -05:00
SinTan1729
99b5298cd8
chg: Use json while sending form for new url 2024-03-31 15:17:54 -05:00
SinTan1729
6c7ca8d0ac
fix: slug_style options are consistent now 2024-03-31 00:59:05 -05:00
SinTan1729
599b013fc9
chg: Change uid to UID 2024-03-31 00:51:32 -05:00
SinTan1729
088cd594a5
chg: Change the env_var name 2024-03-31 00:45:29 -05:00
SinTan1729
f9e642275a
new: Support uid slug 2024-03-31 00:38:42 -05:00
SinTan1729
f526e7ec5b
chg: 404 response doesn't change the url 2024-03-28 13:27:33 -05:00
SinTan1729
5d8dd6fb63
chg: Use Option instead of returning empty String 2024-03-26 23:52:24 -05:00
SinTan1729
5ecd29926d
chg: Added some checks during deletion of a shortlink 2024-03-13 18:59:10 -05:00
SinTan1729
0bfaa49e7b
fix: Wrong regex in validate_link, fixes #6 2024-03-10 18:18:07 -05:00
SinTan1729
95a8263797
new: Show version number 2024-02-10 19:41:50 -06:00
SinTan1729
f6255566b0
chg: Allow insecure cookies 2023-10-08 18:20:34 -05:00
SinTan1729
1ee7ebe847
fix: Correct order for random names 2023-09-19 18:11:29 -05:00
SinTan1729
a4e7c6b444
change: Do not dereference str whenever possible 2023-05-23 19:03:53 -05:00
SinTan1729
7b59a9aa5c
change: Improve consistency in string declaration whenever suitable 2023-05-23 19:03:47 -05:00
SinTan1729
e3520be75b
fix: Handle most wrong routes 2023-05-22 00:44:27 -05:00
SinTan1729
74f3fddd01 Fixed the 404 error page display 2023-04-28 12:12:31 -05:00
SinTan1729
f3984624d9 Add option for temporary redirection 2023-04-28 00:22:30 -05:00
SinTan1729
ca01676916 Use 404 response code when appropriate 2023-04-28 00:08:16 -05:00
SinTan1729
ff4801a476 Fixes suggested by clippy 2023-04-26 14:40:54 -05:00
SinTan1729
66ea86b6d3 Enabled logging of warnings 2023-04-10 11:51:20 -05:00
SinTan1729
e18a71a73c Reorganize files, keep table from moving on alert 2023-04-10 11:31:34 -05:00
SinTan1729
6b1d82bded Do not ask for password if none is provided 2023-04-09 17:19:54 -05:00
SinTan1729
0ddd75502d Reverted the default urls.sqlite location 2023-04-08 15:56:29 -05:00
SinTan1729
b779019716 Removed some debug code 2023-04-08 15:41:23 -05:00
SinTan1729
96b3ae1297 Password login enabled 2023-04-08 15:36:33 -05:00
SinTan1729
34b2b116ba Auth basic working - unsafe 2023-04-08 02:52:16 -05:00
SinTan1729
51e75f726e Added GZip compression 2023-04-03 19:24:33 -05:00
SinTan1729
a14dbf5cd2 Use env variable for opening database 2023-04-03 18:58:36 -05:00
SinTan1729
71d7253248 Use one database connection throghout 2023-04-03 18:52:17 -05:00
SinTan1729
e4ff2df3f1 Ability to delete links from database 2023-04-03 17:58:19 -05:00
SinTan1729
98d10cfd5b Fixed counting hits 2023-04-03 17:41:52 -05:00
SinTan1729
7f6ba5175f Ability to add new links 2023-04-03 17:40:37 -05:00
SinTan1729
618fd0e53a Count number of hits 2023-04-03 15:46:22 -05:00
SinTan1729
3c699d8b02 Support for providing site_url 2023-04-03 13:50:23 -05:00
SinTan1729
a1f73c8a9d Display list of links 2023-04-03 11:55:27 -05:00
SinTan1729
b9d76b6734 Basic redirection working 2023-04-02 22:26:23 -05:00
SinTan1729
0e97516759 Rearrangement 2023-04-02 16:53:55 -05:00