wu
ecb1fcf940
update the ruff settings
2023-04-23 23:12:06 +08:00
wu
be2f69eae7
optimize import
2023-04-23 08:40:30 +08:00
wu
f3561e7fa0
Update the env variable file encoding to utf-8
2023-04-22 14:46:05 +08:00
wu
4e637c407c
update the location and comments of the config file constants
2023-04-21 23:58:00 +08:00
dylan
b9e4ac31eb
Add environment variable management and fix Pydantic validation error ( #15 )
...
* Use env to manage important configurations and distinguish environments
* fix Pydantic validation error caused by None value in links field of Page class
* Production environment no longer exposes API docs
* Extract TOKEN_URL to conf
2023-04-21 20:10:07 +08:00
wu
8dc6081c10
update get_user_info to get_userinfo
2023-04-20 21:16:12 +08:00
wu
9b5f418e2c
delete the code related to the avatar file
2023-04-20 18:46:51 +08:00
wu
2802fc2253
clean up the utils code
2023-04-20 18:46:51 +08:00
wu
7ce3e607cd
simplify user apis #11
2023-04-20 18:46:51 +08:00
wu
77cd87ee0e
fix get_user_info func return None #9
2023-04-19 16:04:14 +08:00
wu
354ba1ccc3
update pagination links by create_links
2023-04-19 11:05:49 +08:00
wu
60192b044b
fix the default host config for redis
2023-04-19 11:05:49 +08:00
wu
b18d51acfb
add uvicorn base settings
2023-04-19 11:05:49 +08:00
wu
9481500b27
update DependsSession to CurrentSession
2023-04-19 11:05:49 +08:00
wu
b335fc1be7
fix user file Page import error
2023-04-19 11:05:49 +08:00
wu
385209c868
fix the default host config for mysql
2023-04-19 11:05:49 +08:00
wu
135074ec73
commit the base code
2023-04-19 11:05:49 +08:00