迁移服务层
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from fastapi import APIRouter
|
||||
from model.response import DefaultResponse
|
||||
from pkg import conf
|
||||
from services import site as site_service
|
||||
|
||||
Router = APIRouter(prefix='/api/site', tags=['站点 Site'])
|
||||
|
||||
@@ -17,4 +17,5 @@ async def ping():
|
||||
|
||||
:return: Findreve 版本号
|
||||
"""
|
||||
return DefaultResponse(data=conf.VERSION)
|
||||
version = await site_service.get_version()
|
||||
return DefaultResponse(data=version)
|
||||
|
||||
Reference in New Issue
Block a user