feat: discussions

This commit is contained in:
pateljannat
2021-08-16 13:33:08 +05:30
parent 6c9d49bf8c
commit a3672e9d91
29 changed files with 451 additions and 420 deletions

View File

@@ -145,7 +145,8 @@ primary_rules = [
{"from_route": "/courses/<course>/discuss", "to_route": "batch/discuss"},
{"from_route": "/courses/<course>/about", "to_route": "batch/about"},
{"from_route": "/courses/<course>/progress", "to_route": "batch/progress"},
{"from_route": "/courses/<course>/join", "to_route": "batch/join"}
{"from_route": "/courses/<course>/join", "to_route": "batch/join"},
{"from_route": "/discussions/<discussion>", "to_route": "discussions/discussion"}
]
# Any frappe default URL is blocked by profile-rules, add it here to unblock it
@@ -167,7 +168,8 @@ whitelist = [
"/new-sign-up",
"/message",
"/about",
"/edit-profile"
"/edit-profile",
"/discussions"
]
whitelist_rules = [{"from_route": p, "to_route": p[1:]} for p in whitelist]