Spaces:
Sleeping

doluong6 commited on
Commit
8838b65
·
verified ·
1 Parent(s): 067a4b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,11 +1,12 @@
1
  from fastapi import FastAPI
2
- from routes import dem_pyc, tong_doanh_thu_pyc, dem_pyc_hoan_thanh # hoặc import từ file dem_pyc nếu không có thư mục routes
3
 
4
  app = FastAPI()
5
 
6
  app.include_router(dem_pyc.router) # ✅ BẮT BUỘC PHẢI CÓ
7
  app.include_router(tong_doanh_thu_pyc.router)
8
  app.include_router(dem_pyc_hoan_thanh.router)
 
9
  @app.get("/")
10
  def root():
11
  return {"message": "✅ Backend is running"}
 
1
  from fastapi import FastAPI
2
+ from routes import dem_pyc, tong_doanh_thu_pyc, dem_pyc_hoan_thanh, doanh_thu_theo_thang # hoặc import từ file dem_pyc nếu không có thư mục routes
3
 
4
  app = FastAPI()
5
 
6
  app.include_router(dem_pyc.router) # ✅ BẮT BUỘC PHẢI CÓ
7
  app.include_router(tong_doanh_thu_pyc.router)
8
  app.include_router(dem_pyc_hoan_thanh.router)
9
+ app.include_router(doanh_thu_theo_thang.router)
10
  @app.get("/")
11
  def root():
12
  return {"message": "✅ Backend is running"}