Added Unsplash Attrabutions & Updated Middleware

This commit is contained in:
Ahmad 2024-02-15 21:43:40 -05:00
parent e768d9181f
commit 631a8ea612
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
3 changed files with 11 additions and 4 deletions

View file

@ -1,9 +1,6 @@
import { authMiddleware, redirectToSignIn } from '@clerk/nextjs';
import { NextResponse } from 'next/server';
// This example protects all routes including api/trpc routes
// Please edit this to allow other routes to be public as needed.
// See https://clerk.com/docs/references/nextjs/auth-middleware for more information about configuring your Middleware
export default authMiddleware({
publicRoutes: ['/', '/api/webhook'],
afterAuth(auth, req) {