15 lines
372 B
Python
15 lines
372 B
Python
from fastapi import FastAPI
|
|
from .api import router
|
|
from .config import settings
|
|
import uvicorn
|
|
|
|
app = FastAPI(title='IP Geo API')
|
|
app.include_router(router)
|
|
|
|
@app.get("/favicon.ico")
|
|
async def favicon():
|
|
return Response(status_code=204)
|
|
|
|
if __name__ == '__main__':
|
|
uvicorn.run('app.main:app', host=settings.host, port=settings.port, log_level=settings.log_level)
|