Skip to content

Commit

Permalink
chore(routes/avatar): allow avatar being accessed by guest users (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Sep 27, 2024
1 parent 87bb006 commit dc23360
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ee/tabby-webserver/src/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ pub fn create(
"/repositories",
repositories::routes(ctx.repository(), ctx.auth()),
)
.route(
"/avatar/:id",
routing::get(avatar)
.with_state(ctx.auth())
.layer(from_fn_with_state(ctx.auth(), require_login_middleware)),
)
.route("/avatar/:id", routing::get(avatar).with_state(ctx.auth()))
.nest("/oauth", oauth::routes(ctx.auth()));

let ui = ui.route("/graphiql", routing::get(graphiql("/graphql", None)));
Expand Down

0 comments on commit dc23360

Please sign in to comment.