File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1779,7 +1779,7 @@ function Compose({ auth }: { auth: AuthState }) {
17791779 const timer = setTimeout ( async ( ) => {
17801780 setAttnChecking ( true ) ;
17811781 try {
1782- const res = await fetch ( `${ API_BASE } /api/attn/ price/${ handle } ` ) ;
1782+ const res = await fetch ( `${ API_BASE } /api/attn- price/${ handle } ` ) ;
17831783 const data = await res . json ( ) ;
17841784 if ( data . attn_enabled ) {
17851785 setAttnInfo ( { cold_stake : data . cold_email_stake , reply_stake : data . reply_thread_stake , handle } ) ;
Original file line number Diff line number Diff line change @@ -578,8 +578,8 @@ app.route('/api/claim', claimRoutes);
578578app . route ( '/api/attn' , attnRoutes ) ;
579579app . route ( '/api/airdrop' , airdropRoutes ) ;
580580
581- // Public ATTN price check (no auth required)
582- app . get ( '/api/attn/ price/:handle' , async ( c ) => {
581+ // Public ATTN price check (no auth required) — outside /api/attn/* to avoid auth middleware
582+ app . get ( '/api/attn- price/:handle' , async ( c ) => {
583583 const handle = c . req . param ( 'handle' ) . toLowerCase ( ) ;
584584 const acct = await c . env . DB . prepare ( 'SELECT handle FROM accounts WHERE handle = ?' ) . bind ( handle ) . first ( ) ;
585585 if ( ! acct ) return c . json ( { error : 'User not found' } , 404 ) ;
You can’t perform that action at this time.
0 commit comments