[PYTHON/FASTAPI] FastAPI 클래스 : route 메소드를 사용해 HTTP 요청에 대해 HTTPS 리다이렉션 설정하기


■ FastAPI 클래스의 route 메소드를 사용해 HTTP 요청에 대해 HTTPS 리다이렉션을 설정하는 방법을 보여준다.

redirect_https.py

main.py

requirements.py