mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
🎉 first commit
This commit is contained in:
parent
8c00f9a074
commit
91f4291d9b
21 changed files with 614 additions and 3 deletions
20
app.py
Normal file
20
app.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from typing import Union
|
||||
from fastapi import FastAPI
|
||||
from src import main
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from src.main import global_router
|
||||
import pymongo
|
||||
|
||||
# Init
|
||||
app = FastAPI(
|
||||
title="LearnHouse",
|
||||
description="LearnHouse is a new open-source platform tailored for learning experiences.",
|
||||
version="0.1.0",
|
||||
root_path="/"
|
||||
)
|
||||
|
||||
app.include_router(global_router)
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"Message": "Welcome to LearnHouse ✨"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue