Bump versions and remove sentry
This commit is contained in:
@@ -1 +1 @@
|
||||
__version__ = "0.2.0"
|
||||
__version__ = "0.4.0"
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
from fastapi import FastAPI, Path, HTTPException, status
|
||||
from fastapi.responses import RedirectResponse, FileResponse
|
||||
from projectorpi.cli import ProjectorSerial, ExtronSerial
|
||||
from fastapi.responses import FileResponse
|
||||
from projectorpi import ProjectorSerial, ExtronSerial
|
||||
from pydantic import BaseModel
|
||||
from time import sleep
|
||||
from typing import Optional
|
||||
import sentry_sdk
|
||||
|
||||
sentry_sdk.init(
|
||||
dsn="https://8dce3a0f69f643c0a3547b8baf19d00b@sentry.marijndoeve.nl/3",
|
||||
# Set traces_sample_rate to 1.0 to capture 100%
|
||||
# of transactions for performance monitoring.
|
||||
# We recommend adjusting this value in production,
|
||||
traces_sample_rate=1.0,
|
||||
)
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
@@ -27,7 +18,7 @@ class Response(BaseModel):
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def index() -> RedirectResponse:
|
||||
async def index() -> FileResponse:
|
||||
return FileResponse("projectorpi_web/index.html")
|
||||
# return RedirectResponse("/docs", HTTPStatus.MOVED_PERMANENTLY)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user