commit before cargo-fix

This commit is contained in:
c0repwn3r 2023-03-01 11:43:29 -05:00
parent 7c48a9de5f
commit 147742b214
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,14 @@
use rocket::{post, options}; use rocket::{post, options};
use crate::auth::{PartialUserInfo, TOTPAuthenticatedUserInfo}; 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")] #[options("/v1/auth/check_session")]
pub async fn options() -> &'static str { pub async fn options() -> &'static str {
"" ""