1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 23:58:35 -06:00
Commit graph

57 commits

Author SHA1 Message Date
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
1ee7ebe847
fix: Correct order for random names 2023-09-19 18:11:29 -05:00
a4e7c6b444
change: Do not dereference str whenever possible 2023-05-23 19:03:53 -05:00
7b59a9aa5c
change: Improve consistency in string declaration whenever suitable 2023-05-23 19:03:47 -05:00
e3520be75b
fix: Handle most wrong routes 2023-05-22 00:44:27 -05:00
74f3fddd01 Fixed the 404 error page display 2023-04-28 12:12:31 -05:00
f3984624d9 Add option for temporary redirection 2023-04-28 00:22:30 -05:00
ca01676916 Use 404 response code when appropriate 2023-04-28 00:08:16 -05:00
ff4801a476 Fixes suggested by clippy 2023-04-26 14:40:54 -05:00
66ea86b6d3 Enabled logging of warnings 2023-04-10 11:51:20 -05:00
e18a71a73c Reorganize files, keep table from moving on alert 2023-04-10 11:31:34 -05:00
6b1d82bded Do not ask for password if none is provided 2023-04-09 17:19:54 -05:00
0ddd75502d Reverted the default urls.sqlite location 2023-04-08 15:56:29 -05:00
b779019716 Removed some debug code 2023-04-08 15:41:23 -05:00
96b3ae1297 Password login enabled 2023-04-08 15:36:33 -05:00
34b2b116ba Auth basic working - unsafe 2023-04-08 02:52:16 -05:00
51e75f726e Added GZip compression 2023-04-03 19:24:33 -05:00
a14dbf5cd2 Use env variable for opening database 2023-04-03 18:58:36 -05:00
71d7253248 Use one database connection throghout 2023-04-03 18:52:17 -05:00
e4ff2df3f1 Ability to delete links from database 2023-04-03 17:58:19 -05:00