Skip to content

Move OpenAI API to Backend Router #46

@lanceu0128

Description

@lanceu0128

Extract the current Azure OpenAI proxy in rise-dc-app/server.js into the Express backend (backend folder) with a dedicated router under a subroute such as /api/ai.

  • Keep both endpoints: ai-suggestions (event suggestions) and ai-recipes (recipe suggestions) with existing validation and fallbacks
  • Update npm scripts and dev workflow within the rise-dc-app to remove the startup of server.js
  • Update frontend fetches in src/shared/utils/aiSuggestions.ts and src/pages/cookbook/GroceryList.tsx to target the new backend subroute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions