(token = 'tok_1')
| 36 | import { GET, POST } from '@/app/api/files/public/[token]/route' |
| 37 | |
| 38 | const params = (token = 'tok_1') => ({ params: Promise.resolve({ token }) }) |
| 39 | const request = (token = 'tok_1') => new NextRequest(`http://localhost/api/files/public/${token}`) |
| 40 | const postRequest = (password: string, token = 'tok_1') => |
| 41 | new NextRequest(`http://localhost/api/files/public/${token}`, { |