mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-15 13:17:53 -08:00
docs: fix redirect
This commit is contained in:
parent
d107f0af1c
commit
6f0bdab9b2
|
@ -33,14 +33,14 @@ module.exports = async function (context, req) {
|
||||||
|
|
||||||
const url = `${process.env['DOCS_LOCATION']}/docs/auth?segment=${segment}&access_token=${body.access_token}&refresh_token=${body.refresh_token}`;
|
const url = `${process.env['DOCS_LOCATION']}/docs/auth?segment=${segment}&access_token=${body.access_token}&refresh_token=${body.refresh_token}`;
|
||||||
|
|
||||||
const res = {
|
context.res = {
|
||||||
status: 302,
|
status: 302,
|
||||||
headers: {
|
headers: {
|
||||||
'Location': url
|
Location: url
|
||||||
},
|
},
|
||||||
body: 'Redirecting...'
|
body: {}
|
||||||
};
|
}
|
||||||
context.done(null, res);
|
context.done();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
context.log(`Issue processing request:\n${error}`);
|
context.log(`Issue processing request:\n${error}`);
|
||||||
context.res = {
|
context.res = {
|
||||||
|
|
Loading…
Reference in a new issue