diff --git a/services/storage-server/src/route/touch.ts b/services/storage-server/src/route/touch.ts new file mode 100644 index 000000000..b14e17e36 --- /dev/null +++ b/services/storage-server/src/route/touch.ts @@ -0,0 +1,18 @@ +import {config, logger} from '../config.js'; +import {nanoServer} from '../lib/nano-server.js'; +import {storageProvider} from '../lib/storage-provider.js'; + +nanoServer.route('GET', '/touch', (connection) => { + logger.logMethod?.('touch'); + + connection.requireToken(config.nanoServer.accessToken); + + const params = connection.requireQueryParams<{storage: string; id: string}>({storage: 'string', id: 'string'}); + + storageProvider.get({name: params.storage}); + + return { + ok: true, + data: {}, + }; +});