-added auth for rolechange, endpoint and test

This commit is contained in:
Samuel Högbom Aronson 2024-03-19 23:08:14 +01:00
parent ce4cf788ae
commit cb44954477
4 changed files with 59 additions and 5 deletions

View file

@ -13,3 +13,9 @@ type NewProject struct {
Name string `json:"name"`
Description string `json:"description"`
}
type RoleChange struct {
Role string `json:"role" tstype:"'project_manager' | 'user'"`
Username string `json:"username"`
Projectname string `json:"projectname"`
}