Skip to content

Commit

Permalink
adds sidekiq web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
fermion committed Jan 29, 2024
1 parent 5a837dd commit 051b3e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
require 'sidekiq/web'

Rails.application.routes.draw do
# TODO: some kind of auth here
mount Sidekiq::Web => '/sidekiq'

mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/graphql", constraints: lambda { |request|
# only allow authenticated users, otherwise 404
Passwordless::Session.exists?(id: request.session[:"passwordless_session_id--user"])
Expand Down

0 comments on commit 051b3e0

Please sign in to comment.