diff options
author | Louie S <louie@example.com> | 2023-04-02 21:06:52 -0700 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-04-02 21:06:52 -0700 |
commit | d209ff852ff153b067e975deda28cbdfa7d0dd41 (patch) | |
tree | 858a3d689f523edef3211f2568a7e8faec2b7689 /backend/server.py | |
parent | 27ca872db30aaa59bea67f0ac0cfb441497b1ec7 (diff) |
backend returns json to frontend
Diffstat (limited to 'backend/server.py')
-rw-r--r-- | backend/server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/server.py b/backend/server.py index b8e1091..477ad15 100644 --- a/backend/server.py +++ b/backend/server.py @@ -1,6 +1,7 @@ import http.server from config import * +from endpoints.get_plist import * class MyServer(http.server.BaseHTTPRequestHandler): def do_GET(self): @@ -9,7 +10,7 @@ class MyServer(http.server.BaseHTTPRequestHandler): self.send_header("Access-Control-Allow-Origin", "*") self.send_header("Access-Control-Allow-Headers", "content-type") self.end_headers() - output = exec(open("." + self.path).read()) + output = Get_Plist.main() self.wfile.write(output.encode()) |