Skip to content

dev-protocol/clubs-storage

Repository files navigation

How to use the API endpoint

See: src/pages/debug.vue

const response = await fetch(`https://storage.clubs.place/api/blob`, {
	method: 'POST',
	body: formData,
})

or, you can add your EOA address on the file name by adding message and signature:

const response = await fetch(
	`https://storage.clubs.place/api/blob?message=SIGNED_MESSAGE&signature=0x...`,
	{
		method: 'POST',
		body: formData,
	},
)