Merge
This commit is contained in:
4
main.py
4
main.py
@@ -2,7 +2,7 @@ from itertools import count
|
||||
from netrc import netrc
|
||||
import os
|
||||
import io
|
||||
from typing import Union, Optional
|
||||
from typing import *
|
||||
from fastapi import FastAPI, File, UploadFile
|
||||
from pydantic import BaseModel
|
||||
from starlette.responses import FileResponse, JSONResponse
|
||||
@@ -88,7 +88,7 @@ async def fastapi_add_junction(network: str, junction: str, x: float, y: float,
|
||||
return add_junction(network, junction, x, y, z)
|
||||
|
||||
@app.get("/getjunctioncoord/")
|
||||
async def fastapi_get_junction_coord(network: str, junction: str) : dict[str, float]:
|
||||
async def fastapi_get_junction_coord(network: str, junction: str) -> dict[str, float]:
|
||||
return get_junction_coord(network, junction)
|
||||
|
||||
@app.post("/addnode/")
|
||||
|
||||
Reference in New Issue
Block a user