~romuloalves/get-instagram-feed

ref: 72bfe2905ec83ec7e479b55c07773b1606062f81 get-instagram-feed/src/index.ts -rw-r--r-- 284 bytes
72bfe290 — romuloalves Renames functions 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
import { NowRequest, NowResponse } from '@now/node';

import getData from './get';

export default async function(request: NowRequest, response: NowResponse) {
  const { id: userId } = request.query;
  const data = await getData(userId);

  return response.status(200).json(data);
};