Skip to content

Commit

Permalink
fix(middleware): remove rewrites to maintenance response
Browse files Browse the repository at this point in the history
Enables endpoints for insertions in `balance_operations` again.
  • Loading branch information
Rafatcb committed Mar 30, 2024
1 parent 7d68501 commit 450ce14
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions middleware.public.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ export async function middleware(request) {

const url = request.nextUrl;

const isPostContents = url.pathname.startsWith('/api/v1/contents') && request.method === 'POST';
const isReward = url.pathname === '/api/v1/user' && request.method === 'GET';
if (isPostContents || isReward) {
url.pathname = '/api/v1/_responses/maintenance';
return NextResponse.rewrite(url);
}

try {
const rateLimitResult = await rateLimit.check(request);

Expand Down

0 comments on commit 450ce14

Please sign in to comment.