Defining Routes
How to define routes.
# A basic GET route.
@get(’/api/v1/route_1’):
# code goes here...
# A route with query parameters.
@post(’/api/v1/route_2/<param_1>’):
print(param_1)Last updated
How to define routes.
# A basic GET route.
@get(’/api/v1/route_1’):
# code goes here...
# A route with query parameters.
@post(’/api/v1/route_2/<param_1>’):
print(param_1)Last updated