teableio/teable

View on GitHub
packages/openapi/src/auth/signout.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { RouteConfig } from '@asteasolutions/zod-to-openapi';
import { axios } from '../axios';
import { registerRoute } from '../utils';

export const SING_OUT = '/auth/signout';

export const SignoutRoute: RouteConfig = registerRoute({
  method: 'post',
  path: SING_OUT,
  description: 'Sign out',
  responses: {
    201: {
      description: 'Sign out successfully',
    },
  },
  tags: ['auth'],
});

export const signout = async () => {
  return axios.post<null>(SING_OUT);
};