Sgridda commited on
Commit
6865edb
·
1 Parent(s): 2d836ae

adding some message

Browse files
__pycache__/main.cpython-313.pyc ADDED
Binary file (8.3 kB). View file
 
__pycache__/main_minimal.cpython-313.pyc ADDED
Binary file (1 kB). View file
 
main_minimal.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+ @app.get("/")
6
+ def read_root():
7
+ return {"message": "Hello World! Service is running!"}
8
+
9
+ @app.get("/health")
10
+ def health():
11
+ return {"status": "ok", "service": "running"}
12
+
13
+ @app.post("/review")
14
+ def review(data: dict):
15
+ return {
16
+ "comments": [
17
+ {
18
+ "file_path": "test.py",
19
+ "line_number": 1,
20
+ "comment_text": "This looks good! Emergency service is working."
21
+ }
22
+ ]
23
+ }