diff --git a/__pycache__/read.cpython-310.pyc b/__pycache__/read.cpython-310.pyc index df1ecae62db9251546e99c5962288986783f4168..e029cd3161e67126e785f063a295c3f394aa08fa 100644 Binary files a/__pycache__/read.cpython-310.pyc and b/__pycache__/read.cpython-310.pyc differ diff --git a/read.py b/read.py index a81e5bf4f9d1ad8b97dec2ae73da9356c19b5efe..b08e40b104e8bc89a40f77e57b01bc277c6b66f6 100644 --- a/read.py +++ b/read.py @@ -17,7 +17,7 @@ async def startup(): async def shutdown(): await database.disconnect() -@app.get("/read/{npm}") +@app.get("/{npm}") async def getMahasiswa(npm:str): try: query = "SELECT * FROM mahasiswa WHERE npm = :npm" diff --git a/reverse_proxy.conf b/reverse_proxy.conf index dddf0eb8f9c4788bb1fd8562a2aad47d19d24958..b4936d9c056157dcba8c64fc0df1aecc695a77ca 100644 --- a/reverse_proxy.conf +++ b/reverse_proxy.conf @@ -1,6 +1,6 @@ server { - listen 8002; - listen [::]:8002; + listen 52894; + listen [::]:52894; location /update { proxy_pass http://0.0.0.0:42894/;