Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

day016

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

Fastapi - custom auth middleware

create virtualenv

virtualenv -p python3 venv
source venv/bin/activate

install dependancies


pip install fastapi
pip install uvicorn

run

uvicorn app:app --reload

test

curl --location --request GET 'http://127.0.0.1:8000/' 

curl --location --request GET 'http://127.0.0.1:8000/' \
--header 'x-api-key: abcsecret'