"vscode:/vscode.git/clone" did not exist on "323cfaf2d79c7d88119e5ed3968810195684fc75"
Commit 398b2076 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent fb516ea6
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
from fastapi import HTTPException, status, Depends
from apps.web.models.users import Users
from apps.web.models.auths import Auths
from pydantic import BaseModel
from typing import Union, Optional
......@@ -97,8 +99,6 @@ def get_current_user(
def get_current_user_by_api_key(api_key: str):
from apps.web.models.auths import Auths
user = Auths.authenticate_user_by_api_key(api_key)
if user is None:
raise HTTPException(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment