File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ DATABASE_HOST="127.0.0.1"
33DATABASE_PORT = 3306
44DATABASE_USER = " "
55DATABASE_PASSWD = " "
6+
7+ ICP_BEIAN = " "
8+ ICP_URL = " https://beian.miit.gov.cn/"
Original file line number Diff line number Diff line change 1+ from datetime import datetime
2+ from fastapi import APIRouter , Request
3+ from loguru import logger
4+
5+ from src .config import settings
6+
7+ router = APIRouter ()
8+
9+
10+ @router .get ("/icp" )
11+ async def query_icp (lang : str ):
12+ return {
13+ "icp_beian" : settings .icp_beian ,
14+ "icp_url" : settings .icp_url ,
15+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ class Settings(BaseSettings):
77 database_port : int
88 database_user : str
99 database_passwd : str
10+ icp_beian : str
11+ icp_url : str
1012
1113 class Config :
1214 env_file = ".env"
You can’t perform that action at this time.
0 commit comments