fix logout redirect and cleanup unsused imports

This commit is contained in:
Douze Bé 2024-10-24 00:54:45 +02:00
parent b6775fae9b
commit 7aa817ee05
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ Index
</div> </div>
<p class="mt-10 text-center text-sm text-gray-500"> <p class="mt-10 text-center text-sm text-gray-500">
<a href="/logout" class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500">Logout</a> <a href="/logout" hx-get="/logout" class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500">Logout</a>
</p> </p>
</div> </div>
{% endblock content %} {% endblock content %}

View file

@ -7,9 +7,9 @@ use axum::{
debug_handler, debug_handler,
extract::State, extract::State,
//extract::Query, //extract::Query,
response::{/*IntoResponse,*/ Redirect}, //response::{IntoResponse, Redirect},
//Json, //Json,
http::{StatusCode, header::{self, HeaderValue, HeaderMap}}, http::{StatusCode, header::HeaderMap},
Form}; Form};
use axum_extra::extract::cookie::{CookieJar, Cookie, SameSite}; use axum_extra::extract::cookie::{CookieJar, Cookie, SameSite};