Sha256: b02b66507b079d75b4faec6b4bb878969852d1b2c1e3b7943fb090ed775dd7d7
Contents?: true
Size: 683 Bytes
Versions: 5
Compression:
Stored size: 683 Bytes
Contents
# frozen_string_literal: true require 'jwt' module Osso class Admin < Sinatra::Base include AppConfig helpers Helpers::Auth register Sinatra::Namespace before do chomp_token end namespace '/admin' do get '' do admin_protected! erb :admin end get '/enterprise' do admin_protected! erb :admin end get '/enterprise/:domain' do enterprise_protected!(params[:domain]) erb :admin end get '/config' do admin_protected! erb :admin end get '/config/:id' do admin_protected! erb :admin end end end end
Version data entries
5 entries across 5 versions & 1 rubygems