aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/login.js
blob: e8c7436567948e5895f26bd9c112c88fee424e0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import got from 'got';

export async function POST({ request }) {
  let json = await request.json();

  let body = await got
		.post('http://localhost:3119/login', {
			json
		})
		.json();

	return { body };
}