mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
21 lines
433 B
TypeScript
21 lines
433 B
TypeScript
|
import type { Application } from 'express';
|
||
|
|
||
|
export default (app: Application) => {
|
||
|
app.post('/github-api/graphql', (_req, res) => {
|
||
|
res.status(200).send({
|
||
|
data: {
|
||
|
viewer: {
|
||
|
name: 'InsomniaUser',
|
||
|
email: 'sleepyhead@email.com',
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
});
|
||
|
|
||
|
app.post('/api/v1/oauth/github', (_req, res) => {
|
||
|
res.status(200).send({
|
||
|
'access_token': '123456789',
|
||
|
});
|
||
|
});
|
||
|
};
|