Skip to content

Commit

Permalink
feat: adding routes
Browse files Browse the repository at this point in the history
  • Loading branch information
arunavabasucom committed Aug 12, 2023
1 parent 2b8f7a1 commit a5b9b0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
import astropy.units as u
from astropy.units import cds
from fastapi.middleware.cors import CORSMiddleware

from src.routes import calculateSpectrum ,downloadSpectrum,downloadTxt



# for high resolution
radis.config["GRIDPOINTS_PER_LINEWIDTH_WARN_THRESHOLD"] = 7
# radis.config["GRIDPOINTS_PER_LINEWIDTH_WARN_THRESHOLD"] = 7

app = FastAPI()
app.add_middleware(
Expand All @@ -17,3 +17,6 @@
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(calculateSpectrum.router)
app.include_router(downloadSpectrum.router)
app.include_router(downloadTxt.router)
Empty file added backend/src/routes/__init__.py
Empty file.

0 comments on commit a5b9b0a

Please sign in to comment.