Skip to content

[components] remove hardcoded backend routes #22

Closed

Description

@severo

const res = await fetch(`/api/store/list?prefix=${prefix}${rec}`)

const resolveUrl = '/api/store/get?key=' + key

Activity

  1. changed the title [-][components] remove hardcoded backed routes[/-] [+][components] remove hardcoded backend routes[/+] on Nov 7, 2024
  2. changed the title [-][components] remove hardcoded backend routes[/-] [+][utils] remove hardcoded backend routes[/+] on Nov 20, 2024
  3. severo commented on Nov 21, 2024

    @severo
    ContributorAuthor

    Note that for now, we declare that @hyparam/utils and @hyparam/components are aimed at hyparam apps, so: it's not a priority to make them generic.

  4. platypii commented on Nov 21, 2024

    @platypii
    Contributor

    Over time I think we can convert these pages to just take a url instead of doing "magic" transformations of a local url. So that same-origin urls might look like /api/store/get?key=example.txt instead of just example.txt and skip the transformations. Slightly uglier url's though. Maybe theres a way to make the utils more generic, but not urgent.

  5. changed the title [-][utils] remove hardcoded backend routes[/-] [+][components] remove hardcoded backend routes[/+] on Nov 25, 2024
  6. severo commented on Nov 29, 2024

    @severo
    ContributorAuthor

    See #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions