refactor: SessionLocalの動作確認用Endpointを削除
This commit is contained in:
parent
9644be4586
commit
ab81dd14d7
@ -1,6 +1,6 @@
|
||||
import os.path as path
|
||||
|
||||
from fastapi import Depends, FastAPI
|
||||
from fastapi import FastAPI
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from starlette import status
|
||||
|
||||
@ -8,11 +8,8 @@ import src.static as static
|
||||
from src.controller import (bio, bio_download, healthcheck, login, logout,
|
||||
master_mainte, menu, root, ultmarc)
|
||||
from src.core import task
|
||||
from src.depends.services import get_service
|
||||
from src.error.exception_handler import http_exception_handler
|
||||
from src.error.exceptions import UnexpectedException
|
||||
from src.logging.get_logger import get_logger
|
||||
from src.services.batch_status_service import BatchStatusService
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
@ -47,18 +44,3 @@ app.add_exception_handler(UnexpectedException, http_exception_handler)
|
||||
|
||||
# サーバー起動時のイベント
|
||||
app.add_event_handler('startup', task.create_start_app_handler)
|
||||
|
||||
|
||||
# logger = get_logger(__name__)
|
||||
|
||||
|
||||
# @app.get('/sample/')
|
||||
# def sample(service: BatchStatusService = Depends(get_service(BatchStatusService))):
|
||||
# # import os
|
||||
# # import threading
|
||||
# logger.info('START')
|
||||
# res = service.hdke_table_record
|
||||
# logger.info(res)
|
||||
# logger.info('END')
|
||||
# return res
|
||||
# # return f'{os.getpid()}, {threading.get_ident()}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user