2 ms·
Further line saving: The << methods >> dictionary isn't needed, it's just mapping lower case strings to upper. Replace: return methods[request.method](request
by chernevik 15y ago
Further line saving: The << methods >> dictionary isn't needed, it's just mapping lower case strings to upper. Replace:
return methods[request.method](request, item_id)
with:
return request.method.lower(request, item_id)