API: Add setup function to routers

This helps prepare the router before exposing it to the parent app.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-07-26 22:24:33 -04:00
parent 6365427d38
commit 2773517a16
3 changed files with 33 additions and 18 deletions

View File

@@ -32,6 +32,10 @@ urls = {
}
def setup():
return router
# Completions endpoint
@router.post(
"/v1/completions",