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
@@ -2,6 +2,22 @@ | ||
2 | 2 | from pydantic import BaseModel |
3 | 3 | from fastapi_crudrouter import MemoryCRUDRouter |
4 | 4 | |
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 | + | |
5 | 21 | app = FastAPI() |
6 | 22 | |
7 | 23 | working_dir = "/srv/manifest" |
@@ -16,6 +32,6 @@ | ||
16 | 32 | router = MemoryCRUDRouter(schema=Site) |
17 | 33 | app.include_router(router) |
18 | 34 | |
19 | -@app.get("/") | |
20 | -def read_root(): | |
35 | +@app.get("/site") | |
36 | +def read_site(): | |
21 | 37 | return {"Hello": "World"} |
\ No newline at end of file |