From 38a4cf594d52935f85141e51f1d249f46cf14a92 Mon Sep 17 00:00:00 2001 From: SJost Date: Sat, 16 Feb 2019 07:58:37 +0100 Subject: [PATCH] Profile url reorganisation --- routes | 9 ++++----- src/Foundation.hs | 5 +++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/routes b/routes index c0dd6a7b8..aca3c5735 100644 --- a/routes +++ b/routes @@ -47,17 +47,16 @@ /help/lecturer InfoLecturerR GET !lecturer -/profile ProfileR GET POST !free -/profile/data ProfileDataR GET POST !free - -/authpreds AuthPredsR GET POST !free +/user ProfileR GET POST !free +/user/profile ProfileDataR GET POST !free +/user/authpreds AuthPredsR GET POST !free /term TermShowR GET !free /term/current TermCurrentR GET !free /term/edit TermEditR GET POST /term/#TermId/edit TermEditExistR GET !/term/#TermId TermCourseListR GET !free -!/term/#TermId/#SchoolId TermSchoolCourseListR GET !free +!/term/#TermId/#SchoolId TermSchoolCourseListR GET !free /school SchoolListR GET !development /school/#SchoolId SchoolShowR GET !development diff --git a/src/Foundation.hs b/src/Foundation.hs index 951b4fb41..561a2c5ef 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -1047,8 +1047,9 @@ instance YesodBreadcrumbs UniWorX where breadcrumb HelpR = return ("Hilfe" , Just HomeR) breadcrumb InfoLecturerR = return ("Veranstalter" , Just HelpR) - breadcrumb ProfileR = return ("Profile" , Just HomeR) - breadcrumb ProfileDataR = return ("Data" , Just ProfileR) + breadcrumb ProfileR = return ("User" , Just HomeR) + breadcrumb ProfileDataR = return ("Profile" , Just ProfileR) + breadcrumb AuthPredsR = return ("Authentifizierung", Just ProfileR) breadcrumb TermShowR = return ("Semester" , Just HomeR) breadcrumb TermCurrentR = return ("Aktuell" , Just TermShowR)