Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaotufu authored Aug 23, 2022
1 parent 5896ae3 commit 844490a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/post-tinyurl/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let fetch = require('node-fetch');
let arc = require('@architect/functions')
let parseBody = arc.http.helpers.bodyParser
var api_key = process.env.API_KEY;
var api_key = process.env.API_KEY==null?'4f64c0deacmshba4e8029f1cbd2bp11925fjsn0a5b88802369':process.env.API_KEY;
exports.handler = async function http (request) {
let body = parseBody(request)
let long_url = body.long_url
Expand Down

0 comments on commit 844490a

Please sign in to comment.