fix: replace express-ejs-layouts with EJS partial includes (header/footer)
This commit is contained in:
11
views/partials/footer.ejs
Normal file
11
views/partials/footer.ejs
Normal file
@@ -0,0 +1,11 @@
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script>
|
||||
function logout() {
|
||||
localStorage.removeItem('access_token');
|
||||
localStorage.removeItem('refresh_token');
|
||||
window.location.href = '/login';
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user