25 lines
640 B
Python
25 lines
640 B
Python
|
|
"""FastAPI application entry point.
|
||
|
|
|
||
|
|
The full registry-aware ``/health`` endpoint lands in
|
||
|
|
ARTIFACT-STORE-WP-0001-T014. This scaffold exposes a minimal root route so
|
||
|
|
``make dev`` has something to serve while the registry layer is being built.
|
||
|
|
"""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from fastapi import FastAPI
|
||
|
|
|
||
|
|
from artifactstore import __version__
|
||
|
|
|
||
|
|
app = FastAPI(title="artifact-store", version=__version__)
|
||
|
|
|
||
|
|
|
||
|
|
@app.get("/")
|
||
|
|
def root() -> dict[str, str]:
|
||
|
|
"""Return a service banner indicating the scaffold is up."""
|
||
|
|
return {
|
||
|
|
"service": "artifact-store",
|
||
|
|
"version": __version__,
|
||
|
|
"status": "scaffold",
|
||
|
|
}
|