added ResearchProfile to Apps (to be changed)
This commit is contained in:
		@ -47,6 +47,7 @@ public class ApplicationsController {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        //if unAuthed
 | 
					        //if unAuthed
 | 
				
			||||||
        authorizedApps.add(Applications.Login);
 | 
					        authorizedApps.add(Applications.Login);
 | 
				
			||||||
 | 
					        authorizedApps.add(Applications.ResearcherProfile);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		User user = authServ.getUserFromToken(token);
 | 
							User user = authServ.getUserFromToken(token);
 | 
				
			||||||
		if(user == null)
 | 
							if(user == null)
 | 
				
			||||||
 | 
				
			|||||||
@ -19,5 +19,7 @@ public enum Applications {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // InscriptionService authorization
 | 
					    // InscriptionService authorization
 | 
				
			||||||
    Requests,
 | 
					    Requests,
 | 
				
			||||||
 | 
					    // profile of a researcher
 | 
				
			||||||
 | 
					    ResearcherProfile,
 | 
				
			||||||
    StudentsList
 | 
					    StudentsList
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -12,9 +12,10 @@ export async function fetchStats(id){
 | 
				
			|||||||
    return restGet("/stats/" +id)
 | 
					    return restGet("/stats/" +id)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
export async function addView(url){
 | 
					export async function addView(url){
 | 
				
			||||||
    return restPost("/addView/" +url)
 | 
					    return restPost("/addview/" +url)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export async function getFile(url){
 | 
					export async function getFile(url){
 | 
				
			||||||
    return restGet("/" + url)
 | 
					    const restURL = import.meta.env.VITE_CLYDE_MODE === 'container' ? "http://localhost:8000": import.meta.env.DEV ? "http://localhost:5173" : "https://clyde.herisson.ovh/api"
 | 
				
			||||||
 | 
					    await fetch(restURL + "/"+url, {method: "GET"})
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -34,6 +34,7 @@ const appsList = {
 | 
				
			|||||||
		'ManageCourses': { path: '#/manage-courses', icon: 'fa-book', text: i18n("app.manage.courses") },
 | 
							'ManageCourses': { path: '#/manage-courses', icon: 'fa-book', text: i18n("app.manage.courses") },
 | 
				
			||||||
		'StudentsList':{ path: '#/students-list',icon: 'fa-users',text: i18n("app.studentList")},
 | 
							'StudentsList':{ path: '#/students-list',icon: 'fa-users',text: i18n("app.studentList")},
 | 
				
			||||||
		'UsersList':{ path: '#/users-list',icon: 'fa-users',text: i18n("app.users")},
 | 
							'UsersList':{ path: '#/users-list',icon: 'fa-users',text: i18n("app.users")},
 | 
				
			||||||
 | 
							'ResearcherProfile':{path:'#/researcher-profile',icon:'fa-book-bookmark',text:"hihi"},
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const currentPath = ref(window.location.hash)
 | 
					const currentPath = ref(window.location.hash)
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user