mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 15:10:41 +01:00
13 lines
311 B
Python
13 lines
311 B
Python
# views_api.py is for you API endpoints that could be hit by another service
|
|
|
|
# add your dependencies here
|
|
|
|
from . import example_ext
|
|
|
|
# add your endpoints here
|
|
|
|
|
|
@example_ext.get("/api/v1/test/{test_data}")
|
|
async def api_example(test_data):
|
|
# Do some python things and return the data
|
|
return test_data
|