~romuloalves/get-instagram-feed

ref: a2f873caa40ea9b2e3318e414b04a85e5f3c299d get-instagram-feed/src/index.ts -rw-r--r-- 298 bytes
a2f873ca — romuloalves Splits code 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
import { NowRequest, NowResponse } from '@now/node';

import getPicture from './get-picture';

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

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