home_router.py 460 B

1234567891011121314151617181920
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from fastapi import APIRouter
  5. home_app = APIRouter(
  6. prefix="/home",
  7. tags=["home"],
  8. )
  9. @home_app.get('/test')
  10. async def home_test():
  11. return {'message':'test'}
  12. # gcc -Wall -pedantic -shared -fPIC -o group_work.so group_work.c -lwiringPi
  13. @home_app.get('/home_menu')
  14. async def home_menu():
  15. return {'Home': [], 'Updater': [], 'Tool': []}