• R/O
  • SSH

manifest: コミット

A service to replicate and serve requests for site configurations based on site ID, public IP, and the on-site lead contact's OTP.


コミットメタ情報

リビジョン4a56f8a5d80030a9066ee4af5ddb22ec33f9d7ba (tree)
日時2021-10-16 02:08:38
作者4E9B58 <4e9b58@proj...>
コミッター4E9B58

ログメッセージ

Add valid ports; fix url

変更サマリ

差分

diff -r 7ac36aa16da9 -r 4a56f8a5d800 src/manifest/main.py
--- a/src/manifest/main.py Fri Oct 15 12:08:09 2021 -0500
+++ b/src/manifest/main.py Fri Oct 15 12:08:38 2021 -0500
@@ -2,6 +2,22 @@
22 from pydantic import BaseModel
33 from fastapi_crudrouter import MemoryCRUDRouter
44
5+ports = [
6+ 2520, 5040,
7+ 7560, 10080,
8+ 12600, 15120,
9+ 17640, 20160,
10+ 22680, 25200,
11+ 27720, 30240,
12+ 32760, 35280,
13+ 37800, 40320,
14+ 42840, 45360,
15+ 47880, 50400,
16+ 52920, 55440,
17+ 57960, 60480,
18+ 63000, 65520
19+ ]
20+
521 app = FastAPI()
622
723 working_dir = "/srv/manifest"
@@ -16,6 +32,6 @@
1632 router = MemoryCRUDRouter(schema=Site)
1733 app.include_router(router)
1834
19-@app.get("/")
20-def read_root():
35+@app.get("/site")
36+def read_site():
2137 return {"Hello": "World"}
\ No newline at end of file
旧リポジトリブラウザで表示