okapi icon indicating copy to clipboard operation
okapi copied to clipboard

How to document handlers with rocket_oauth2 structs

Open kotsmile opened this issue 1 year ago • 0 comments

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?

kotsmile avatar Feb 05 '24 08:02 kotsmile