ZunZun classΒΆ
ZunZun is the name of the class that will parse all the incoming request and route them to a proper APIResource class to proccess the requests.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import zunzuncito
root = 'my_api'
versions = ['v0', 'v1']
hosts = {'*': 'default'}
routes = {'default':[
('/(md5|sha1|sha256|sha512)(/.*)?', 'hasher', 'GET, POST'),
('/.*', 'default')
]}
app = zunzuncito.ZunZun(root, versions, hosts, routes, rid='TRACK_ID', debug=True)
|
A great amount of time has been spent creating, crafting and maintaining this software, please consider donating.
Donating helps ensure continued support, development and availability.
comments powered by Disqus