commit before cargo-fix
This commit is contained in:
parent
7c48a9de5f
commit
147742b214
|
@ -17,6 +17,14 @@
|
|||
use rocket::{post, options};
|
||||
use crate::auth::{PartialUserInfo, TOTPAuthenticatedUserInfo};
|
||||
|
||||
/*
|
||||
These endpoints do not return any actual data, and are used purely to check auth tokens
|
||||
by the client code.
|
||||
Since PartialUserInfo implements FromRequest, and will error out the req even before
|
||||
it gets to our handler if the auth is invalid, these reqs just have to have
|
||||
it as a param. They therefore don't need to s
|
||||
*/
|
||||
|
||||
#[options("/v1/auth/check_session")]
|
||||
pub async fn options() -> &'static str {
|
||||
""
|
||||
|
|
Loading…
Reference in New Issue