refactor: added nice urls for sketches.

- Sketches will be available at `/sketches/<sketch-id>`
This commit is contained in:
Anand Chitipothu
2021-04-06 18:36:07 +05:30
parent 06f7698e8f
commit a3788a0f39
4 changed files with 29 additions and 14 deletions

View File

@@ -132,7 +132,9 @@ install_regex_converter()
# Add all simple route rules here
primary_rules = [
{"from_route": "/sketches", "to_route": "sketches"},
{"from_route": "/sketches/<sketch>", "to_route": "sketches/sketch"},
{"from_route": "/courses", "to_route": "courses"},
{"from_route": "/courses/<course>", "to_route": "courses/course"},
{"from_route": "/courses/<course>/<topic>", "to_route": "courses/topic"},
{"from_route": "/courses/<course>/<topic>", "to_route": "courses/topic"}