diff options
| author | Adam Soltys <[email protected]> | 2022-11-02 19:47:29 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-02 19:48:18 -0700 |
| commit | 23ffc5a6359dbc84a1de1da632412edeb9989b5f (patch) | |
| tree | 1cc276efeb5287e1fc176ec60d46aed091ab08ca /src/routes/(app)/locations | |
| parent | c12857a38eed1227ed51dc6e0af7242e66dd7561 (diff) | |
| download | coinos-ui-23ffc5a6359dbc84a1de1da632412edeb9989b5f.tar.gz coinos-ui-23ffc5a6359dbc84a1de1da632412edeb9989b5f.zip | |
move to app layout
Diffstat (limited to 'src/routes/(app)/locations')
| -rw-r--r-- | src/routes/(app)/locations/+server.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/(app)/locations/+server.js b/src/routes/(app)/locations/+server.js new file mode 100644 index 00000000..381919ab --- /dev/null +++ b/src/routes/(app)/locations/+server.js @@ -0,0 +1,7 @@ +import { get } from "$lib/utils"; +import { json } from '@sveltejs/kit'; + +export async function GET({ fetch, setHeaders }) { + setHeaders({ 'cache-control': 'public, max-age=600' }); + return json(await get('/locations')); +} |
