Skip to content

Options object could be completely replaced with url #3

@RashJrEdmund

Description

@RashJrEdmund

Instead of having to write

  import {HttpClient} from "@orashus/http-client";

   const authHC = new HttpClient({
      base_url: ["auth"],
    });

developers could have the possibility of just using one parameter of type string | string[] which will default to the base_url
Like so!

  import {HttpClient} from "@orashus/http-client";

   const authHC = new HttpClient("auth");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions