feat(api): add specialization catalog and candidate questionnaire contract

This commit is contained in:
shira committed 2026-10-06 02:51:23 +03:00
1 parent c338c0c188
commit faeeb5f157
64 files changed
+8339 -47

No files matched your search

@@ -56,9 +56,11 @@ func findAuthorization(h http.Header, prefix string) (string, bool) {
// operationRolesSessionCookie is a private map storing roles per operation.
var operationRolesSessionCookie = map[string][]string{
GetCurrentAccountOperation: []string{},
GetCurrentSessionOperation: []string{},
LogoutOperation: []string{},
GetCurrentAccountOperation: []string{},
GetCurrentSessionOperation: []string{},
GetMyQuestionnaireOperation: []string{},
LogoutOperation: []string{},
SaveMyQuestionnaireOperation: []string{},
}
// GetRolesForSessionCookie returns the required roles for the given operation.
@@ -84,7 +86,8 @@ func GetRolesForSessionCookie(operation string) []string {
// operationRolesSessionCsrf is a private map storing roles per operation.
var operationRolesSessionCsrf = map[string][]string{
LogoutOperation: []string{},
LogoutOperation: []string{},
SaveMyQuestionnaireOperation: []string{},
}
// GetRolesForSessionCsrf returns the required roles for the given operation.