diff --git a/public/index.html b/public/index.html index e768b22..e4bb31f 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@
  • POST /api/sessions
    - {"sub":"jon@example.com"} + {"sub":"<email>"}

    # Ask for an auth code (swap sub)
     
    @@ -21,9 +21,9 @@ curl -X POST http://localhost:4080/api/sessions \
         
  • -

    POST /api/sessions/id +

    POST /api/sessions/<id>
    - {"otp":"auth-code"} + {"otp":"<auth-code>"}

    # Validate auth code (swap session id, sub, and otp)
     
    @@ -39,8 +39,8 @@ curl -X POST http://localhost:4080/api/sessions/xyz \
         
  • POST /api/rooms/general
    - Authorization: Bearer api-token -
    {"message":"Hello, World!"}
    + Authorization: Bearer <api-token> +
    {"message":"<msg>"}

    # Post a message (swap api-token)
     
    @@ -54,8 +54,7 @@ curl -X POST http://localhost:4080/api/rooms/general \
         
  • GET /api/rooms/general
    - Authorization: Bearer api-token -
    {"message":"Hello, World!"}
    + Authorization: Bearer <api-token>

    # Get a room's messages (swap api-token, since unix-epoch)