mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: archive session
This commit is contained in:
@@ -239,6 +239,13 @@ export class ApiClient {
|
||||
})
|
||||
}
|
||||
|
||||
async archiveSession(sessionId: string): Promise<void> {
|
||||
await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/archive`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({})
|
||||
})
|
||||
}
|
||||
|
||||
async switchSession(sessionId: string): Promise<void> {
|
||||
await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/switch`, {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user