diff options
| author | Adam Soltys <[email protected]> | 2023-02-06 22:53:18 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-06 22:53:18 -0800 |
| commit | 17940dea28991beac8a8c8876b574f6abbd480b9 (patch) | |
| tree | ef6f862297698c631af6804eb75cf4bfe83bf760 /src/routes/(app)/pin/+server.js | |
| parent | ae2093ab252bdf56a12094da2cb43b46bd5cc1d3 (diff) | |
| parent | b5b7fe81ba245f85ecc1a67318eeb92a34949861 (diff) | |
| download | coinos-ui-test.tar.gz coinos-ui-test.zip | |
Merge branch 'master' into testtest
Diffstat (limited to 'src/routes/(app)/pin/+server.js')
| -rw-r--r-- | src/routes/(app)/pin/+server.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/(app)/pin/+server.js b/src/routes/(app)/pin/+server.js new file mode 100644 index 00000000..9f63f545 --- /dev/null +++ b/src/routes/(app)/pin/+server.js @@ -0,0 +1,7 @@ +import { json } from '@sveltejs/kit'; +import { auth, post } from '$lib/utils'; + +export async function POST({ cookies, request }) { + let result = await post('/pin', await request.json(), auth(cookies)); + return json(result); +} |
