Creation bibliotheque js

This commit is contained in:
2022-07-25 20:35:54 +02:00
parent b717a5b819
commit e208c55811
4 changed files with 16 additions and 54 deletions

9
web/js/library.js Normal file
View File

@@ -0,0 +1,9 @@
function checkToken(){
instance.get("token", { withCredentials: true})
.then(function(response) { location.href="html/home.html"; })
.catch(function(error){
location.href="/";
});
}