okapi
okapi copied to clipboard
How to document handlers with rocket_oauth2 structs
I have
#[get("/login/google")]
pub fn get_login_google(oauth2: OAuth2<GoogleUserInfo>, cookies: &CookieJar<'_>) -> Redirect {
oauth2
.get_redirect(cookies, &["https://www.googleapis.com/auth/userinfo.email"])
.unwrap()
}
But i cant wrap it in my custom struct, because it is Guard
How to add openapi docs?