We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73c4f5 commit 4b9b6f6Copy full SHA for 4b9b6f6
app.py
@@ -2,6 +2,8 @@
2
3
from routers import google, imagemanip
4
5
+PREFIX = "/api/v1"
6
+
7
app = FastAPI()
-app.include_router(google.router)
-app.include_router(imagemanip.router)
8
+app.include_router(google.router, prefix=PREFIX)
9
+app.include_router(imagemanip.router, prefix=f"{PREFIX}/image")
build-and-push.sh
@@ -1,3 +1,4 @@
1
#!/bin/sh
-sudo docker build -t ghcr.io/ziro-bot/randomapi . \
-&& sudo docker push ghcr.io/ziro-bot/randomapi:latest
+sudo docker build -t ghcr.io/ziro-bot/randomapi -t ghcr.io/ziro-bot/randomapi:1.0.0 . \
+&& sudo docker push ghcr.io/ziro-bot/randomapi:latest \
+&& sudo docker push ghcr.io/ziro-bot/randomapi:1.0.0
0 commit comments