feat: 新增技能扩展N7一章相关示例源码
This commit is contained in:
8
code/newsletter/N7/templates/project/views.py.jinja2
Normal file
8
code/newsletter/N7/templates/project/views.py.jinja2
Normal file
@@ -0,0 +1,8 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter(prefix="/{{ app_name }}/api")
|
||||
|
||||
|
||||
@router.get("/")
|
||||
async def index():
|
||||
return {"msg": "Hello, world"}
|
||||
Reference in New Issue
Block a user