HF RL Explorer

Using starlette , implement a MiniApp class that wraps a starlette.applications.Starlette instance and…

Using starlette , implement a MiniApp class that wraps a starlette.applications.Starlette instance and…: a task in repo2rlenv-code-instruct (Harbor dataset). MiniApp must: 1. Accept a list of (method, path, handler) tuples in its constructor and register them as routes on an internal Starlette…

The task

`MiniApp` must: 1. Accept a list of `(method, path, handler)` tuples in its constructor and register them as routes on an internal `Starlette` app. 2. Expose an `add_route(method, path, handler)` method that raises `ValueError` if the same `(method, path)` pair is registered twice. 3. Expose an `asgi_app` property…

Part of FineEnvs/repo2rlenv-code-instruct.