mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
70bcd75437
* first pass * fix deep link * remove comments * support changing origins * fix backup * remove console log * remove unused * remove srp-js * fix route * fix tests * fix tests * deal with env trip hazard
21 lines
429 B
TypeScript
21 lines
429 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('/v1/oauth/github', (_req, res) => {
|
|
res.status(200).send({
|
|
'access_token': '123456789',
|
|
});
|
|
});
|
|
};
|