12 lines
243 B
Python
12 lines
243 B
Python
|
|
from fastapi import FastAPI
|
||
|
|
|
||
|
|
app = FastAPI(title="NetMapper API", version="0.1.0")
|
||
|
|
|
||
|
|
@app.get("/health")
|
||
|
|
def health():
|
||
|
|
return {"status": "ok"}
|
||
|
|
|
||
|
|
@app.get("/api/v1")
|
||
|
|
def root():
|
||
|
|
return {"service": "netmapper-backend", "version": "0.1.0"}
|