Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jan 11, 2025
1 parent b60edd4 commit 586d7d6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion integration_tests/base_routes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import pathlib
from collections import defaultdict
from typing import Optional
from typing import Optional, List

from integration_tests.subroutes import di_subrouter, sub_router
from robyn import Headers, Request, Response, Robyn, WebSocket, WebSocketConnector, jsonify, serve_file, serve_html
Expand Down Expand Up @@ -560,6 +560,10 @@ async def async_dict_post():

# Body

class TestMyRequest(Body):
items: List[str]
numbers: list[int]


@app.post("/sync/body")
def sync_body_post(request: Request):
Expand All @@ -575,6 +579,11 @@ async def async_body_post(request: Request):
def sync_form_data(request: Request):
return request.headers["Content-Type"]

@app.post("/sync/body/typed")
def sync_body_typed(body: TestMyRequest):
# the server should just start
return "This is not tested with a request"


# JSON Request

Expand Down

0 comments on commit 586d7d6

Please sign in to comment.