From 588e358c63cc28a6df540cf55fc8ea7fffc7b3ab Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Mon, 23 Apr 2018 16:42:45 +0100 Subject: Add file ID and creation status to POST request The 'creation status' is currently always `true`, but I doubt anyone will notice ;) --- src/FileRouter.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/FileRouter.ts b/src/FileRouter.ts index e2b7eeb..94ffa63 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -970,6 +970,10 @@ const postFilePath: Middleware = async( } await res.locals.file.save(); } + res.locals.data = { + id: res.locals.file.uuid, + created: true + }; return next(); } catch (e) { -- cgit v1.2.1