clean up, update readme
This commit is contained in:
parent
244f440cb8
commit
472e332d05
3 changed files with 1 additions and 37 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
<h1>Example Extension</h1>
|
<h1>Deezy Extension</h1>
|
||||||
<h2>*tagline*</h2>
|
<h2>*tagline*</h2>
|
||||||
This is an example extension to help you organise and build you own.
|
This is an example extension to help you organise and build you own.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,3 @@ def deezy_renderer():
|
||||||
|
|
||||||
|
|
||||||
from .views import * # noqa
|
from .views import * # noqa
|
||||||
from .views_api import * # noqa
|
|
||||||
|
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
# views_api.py is for you API endpoints that could be hit by another service
|
|
||||||
|
|
||||||
# add your dependencies here
|
|
||||||
|
|
||||||
# import httpx
|
|
||||||
# (use httpx just like requests, except instead of response.ok there's only the
|
|
||||||
# response.is_error that is its inverse)
|
|
||||||
|
|
||||||
from . import deezy_ext
|
|
||||||
|
|
||||||
# add your endpoints here
|
|
||||||
|
|
||||||
|
|
||||||
@deezy_ext.get("/api/v1/tools")
|
|
||||||
async def api_example():
|
|
||||||
"""Try to add descriptions for others."""
|
|
||||||
tools = [
|
|
||||||
{
|
|
||||||
"name": "fastAPI",
|
|
||||||
"url": "https://fastapi.tiangolo.com/",
|
|
||||||
"language": "Python",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Vue.js",
|
|
||||||
"url": "https://vuejs.org/",
|
|
||||||
"language": "JavaScript",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Quasar Framework",
|
|
||||||
"url": "https://quasar.dev/",
|
|
||||||
"language": "JavaScript",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
return tools
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue