MCPcopy Index your code
hub / github.com/simstudioai/sim / postRequest

Function postRequest

apps/sim/app/api/files/public/[token]/route.test.ts:40–45  ·  view source on GitHub ↗
(password: string, token = 'tok_1')

Source from the content-addressed store, hash-verified

38const params = (token = 'tok_1') => ({ params: Promise.resolve({ token }) })
39const request = (token = 'tok_1') => new NextRequest(`http://localhost/api/files/public/${token}`)
40const 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
47const publicShare = {
48 share: { id: 'sh_1', token: 'tok_1', authType: 'public', password: null },

Callers 1

route.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected