bhighlander / revived-relics

https://revived-relics.vercel.app
0 stars 0 forks source link

Contact Form #8

Open bhighlander opened 6 months ago

bhighlander commented 6 months ago

User Story

Dependencies

Code Structure

export const createArticle = async (article, token) => {
    let formData = new FormData();
    formData.append('image', article.image);
    formData.append('color', article.color);
    formData.append('season', article.season);
    formData.append('type', article.type);

    await fetch(`${API_URL}/articles`, {
        method: 'POST',
        body: formData,
        headers: {
            'Authorization': `Token ${token}`
        }
    });
}

Steps

bhighlander commented 4 months ago

added initial form component. will add api to email directly to admin using https://formsubmit.co/