| 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}`, { |
| 42 | method: 'POST', |
| 43 | headers: { 'content-type': 'application/json' }, |
| 44 | body: JSON.stringify({ password }), |
| 45 | }) |
| 46 | |
| 47 | const publicShare = { |
| 48 | share: { id: 'sh_1', token: 'tok_1', authType: 'public', password: null }, |