Update index
This commit is contained in:
5
core/routes.py
Normal file
5
core/routes.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from PyJS import JSON
|
||||
from PyJS.modules import fs
|
||||
|
||||
def route_for(route):
|
||||
return JSON.parse(fs.createReadStream('data/routes.json'))[route]
|
||||
Reference in New Issue
Block a user