Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"), README, CLI strings, and branch (coven → hack-house). Gitea repo renamed cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest + golden-vector test still green, binary is now `hack-house`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
19 lines
435 B
Python
19 lines
435 B
Python
from pathlib import Path
|
|
|
|
from sanic import Sanic
|
|
from sanic.exceptions import SanicException
|
|
|
|
|
|
def create_simple_server(directory: Path):
|
|
if not directory.is_dir():
|
|
raise SanicException(
|
|
"Cannot setup Sanic Simple Server without a path to a directory"
|
|
)
|
|
|
|
app = Sanic("SimpleServer")
|
|
app.static(
|
|
"/", directory, name="main", directory_view=True, index="index.html"
|
|
)
|
|
|
|
return app
|