diff options
author | bobzel <zzzman@gmail.com> | 2025-03-11 23:08:16 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-03-11 23:08:16 -0400 |
commit | d0b117d1f31f911d46dffe69e2f5c40b2bc5de3e (patch) | |
tree | bd74955a5db95c221a1e2be97b1f5d85bda59853 /src/server | |
parent | 13514f515465a17beccc881933923e49ab144178 (diff) |
getting rid of old expand image code
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ApiManagers/FireflyManager.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/server/ApiManagers/FireflyManager.ts b/src/server/ApiManagers/FireflyManager.ts index 77655bb23..887c4aa72 100644 --- a/src/server/ApiManagers/FireflyManager.ts +++ b/src/server/ApiManagers/FireflyManager.ts @@ -429,23 +429,6 @@ export default class FireflyManager extends ApiManager { ) ), }); - register({ - method: Method.POST, - subscription: '/expandImage', - secureHandler: ({ req, res }) => - this.uploadImageToDropbox(req.body.file, req.user as DashUserModel).then(uploadUrl => - uploadUrl instanceof Error - ? _invalid(res, uploadUrl.message) - : this.expandImage(uploadUrl, req.body.prompt).then(text => { - if (text.error_code) _error(res, text.message); - else - return DashUploadUtils.UploadImage(text.outputs[0].image.url).then(info => { - if (info instanceof Error) _invalid(res, info.message); - else _success(res, info); - }); - }) - ), - }); // construct this url and send user to it. It will allow them to authorize their dropbox account and will send the resulting token to our endpoint /refreshDropbox // https://www.dropbox.com/oauth2/authorize?client_id=DROPBOX_CLIENT_ID&response_type=code&token_access_type=offline&redirect_uri=http://localhost:1050/refreshDropbox |