0.0.9 • Published 1 year ago

@pigeonposse/api-client-2025 v0.0.9

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

PIGEONPOSSE API CLIENT

HEADER

API Client for @pigeonposse/api-2025

Installation

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

Usage

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

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

Example

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

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.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago