mirror of
https://github.com/wassname/talk.git
synced 2026-10-04 13:10:23 +08:00
SignOff Mutation
This commit is contained in:
1 parent
551ce1521c
commit
e704c6d968
8 files changed
+42
-33
No files matched your search
@@ -1,3 +1,3 @@
|
||||
export { default as signIn, SignInInput } from "./signIn";
|
||||
export { default as signUp, SignUpInput } from "./signUp";
|
||||
export { default as signOff } from "./signOff";
|
||||
export { default as signOff, SignOffInput } from "./signOff";
|
||||
@@ -1,7 +1,13 @@
|
||||
import { RestClient } from "../lib/rest";
|
||||
|
||||
export default function signOff(rest: RestClient) {
|
||||
return rest.fetch("/tenant/auth/local", {
|
||||
// tslint:disable-next-line:no-empty-interface
|
||||
export interface SignOffInput {}
|
||||
|
||||
// tslint:disable-next-line:no-empty-interface
|
||||
export interface SignOffResponse {}
|
||||
|
||||
export default function signOff(rest: RestClient, input: SignOffInput) {
|
||||
return rest.fetch<SignOffResponse>("/tenant/auth/local", {
|
||||
method: "DELETE",
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user