Title
Info

Introduction

A Fetch api that enhance the standard fetch api. It is adjustet to the work with our inhouse WEB api.

How to use

import { HHLfetch } from "lib/utils/HHLfetch"
const hhl_fetch = new HHLfetch("Main Path or nothing");

Return object.

Both success and error return the sane syntax.

returnValue: {
  data: any,  // The data
  message: string // A message text, if error it should contain the error text.
  response: object // The html responce object
}

Get reqest


Post reqest


Delete reqest


Login and add token.


Token