Skip to content

Commit

Permalink
chore: Better quickstart in README
Browse files Browse the repository at this point in the history
  • Loading branch information
playpauseandstop committed Mar 11, 2020
1 parent 52de47c commit 91d90ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ For uploading large files, please consider using
Quickstart
==========

Code belows shows how to enable tus-compatible uploads on ``/uploads`` URL for
``aiohttp.web`` application. After upload, files will be available at ``../uploads``
directory.

.. code-block:: python
from pathlib import Path
Expand All @@ -29,9 +33,8 @@ Quickstart
from aiohttp_tus import setup_tus
app = web.Application()
setup_tus(
app,
app = setup_tus(
web.Application(),
upload_url="/uploads",
upload_path=Path(__file__).parent.parent / "uploads",
)

0 comments on commit 91d90ab

Please sign in to comment.