0.1.10 • Published 1 year ago

@pigeonposse/api-client-2024 v0.1.10

Weekly downloads
-
License
GPL-3.0-only
Repository
-
Last release
1 year ago

PIGEONPOSSE API CLIENT

HEADER

API Client for @pigeonposse/api-2024

Installation

npm i @pigeonposse/api-client-2024
# or
pnpm i @pigeonposse/api-client-2024

Usage

import { createClient } from '@pigeonposse/api-client-2024'

export const client = createClient( { baseUrl: 'https:/localhost:1312' } )

Example

import { createClient } from '@pigeonposse/api-client-2024'

const fetchData = async () => {

  const client = createClient( { baseUrl: env.PUBLIC_API_URL } )

  const res = await client.GET( '/all' )

  if ( res.error ) return { type: 'error' } as const

  return res

}
0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago