from fastapi_admin.app import app as admin_app
from app.v1 import router as v1_router
from app.core.logging_config import logger
from app.core.config import settings
app = FastAPI(title=settings.APP_NAME, version="1.0.0")
@app.get('/', include_in_schema=False)
async def get_home():
logger.info('backend is running')
return {"message":"Backend is running!"}
app.mount("/admin", admin_app)
app.include_router(v1_router, prefix='/api/v1')
so here is my code and its running
(venv) fast_learn/fast1 [ uvicorn app.main:app --reload main * ] 10:29 AM
INFO: Will watch for changes in these directories: ['/home/solohiddin/files/fast_learn/fast1']
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [24523] using WatchFiles
INFO: Started server process [24531]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 127.0.0.1:38856 - "GET / HTTP/1.1" 200 OK
INFO: 127.0.0.1:38862 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:49320 - "GET /admin/ HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:49332 - "GET /favicon.ico HTTP/1.1" 404 Not Found
its giving this error, even though i opened it's router, where am i doing it wrong?
so here is my code and its running
its giving this error, even though i opened it's router, where am i doing it wrong?