tangled
alpha
login
or
join now
graham.systems
/
statusphere-react
forked from
samuel.fm/statusphere-react
0
fork
atom
the statusphere demo reworked into a vite/react app in a monorepo
0
fork
atom
overview
issues
pulls
pipelines
remove unused async
samuel.fm
1 year ago
25e553d1
6c0a3d20
+5
-5
1 changed file
expand all
collapse all
unified
split
packages
client
src
services
api.ts
+5
-5
packages/client/src/services/api.ts
···
10
super(StatusphereAgent.fetchHandler)
11
}
12
13
-
private static fetchHandler: Lexicon.AtpBaseClient['fetchHandler'] = async (
14
path,
15
options,
16
) => {
17
-
return await fetch(path, {
18
...options,
19
headers: {
20
'Content-Type': 'application/json',
···
62
},
63
64
// Get current user
65
-
async getCurrentUser(params: XyzStatusphereGetUser.QueryParams) {
66
return agent.xyz.statusphere.getUser(params)
67
},
68
69
// Get statuses
70
-
async getStatuses(params: XyzStatusphereGetStatuses.QueryParams) {
71
return agent.xyz.statusphere.getStatuses(params)
72
},
73
74
// Create status
75
-
async createStatus(params: XyzStatusphereSendStatus.InputSchema) {
76
return agent.xyz.statusphere.sendStatus(params)
77
},
78
}
···
10
super(StatusphereAgent.fetchHandler)
11
}
12
13
+
private static fetchHandler: Lexicon.AtpBaseClient['fetchHandler'] = (
14
path,
15
options,
16
) => {
17
+
return fetch(path, {
18
...options,
19
headers: {
20
'Content-Type': 'application/json',
···
62
},
63
64
// Get current user
65
+
getCurrentUser(params: XyzStatusphereGetUser.QueryParams) {
66
return agent.xyz.statusphere.getUser(params)
67
},
68
69
// Get statuses
70
+
getStatuses(params: XyzStatusphereGetStatuses.QueryParams) {
71
return agent.xyz.statusphere.getStatuses(params)
72
},
73
74
// Create status
75
+
createStatus(params: XyzStatusphereSendStatus.InputSchema) {
76
return agent.xyz.statusphere.sendStatus(params)
77
},
78
}