aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-12-25 20:45:22 +0900
committerPitu <[email protected]>2020-12-25 20:45:22 +0900
commitec2f9e0d989792c1760b48e063467cf6e59c580a (patch)
tree6f447aeebe9af7be57ba15e23851a4611568ec3e /src/api/routes
parentchore: style changes (diff)
downloadhost.fuwn.me-ec2f9e0d989792c1760b48e063467cf6e59c580a.tar.xz
host.fuwn.me-ec2f9e0d989792c1760b48e063467cf6e59c580a.zip
Rebrand
Diffstat (limited to 'src/api/routes')
-rw-r--r--src/api/routes/albums/albumZipGET.js4
-rw-r--r--src/api/routes/albums/albumsGET.js2
-rw-r--r--src/api/routes/auth/loginPOST.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/api/routes/albums/albumZipGET.js b/src/api/routes/albums/albumZipGET.js
index 26da2ba..0722f80 100644
--- a/src/api/routes/albums/albumZipGET.js
+++ b/src/api/routes/albums/albumZipGET.js
@@ -44,7 +44,7 @@ class albumGET extends Route {
Make sure the file exists just in case, and if not, continue to it's generation.
*/
if (exists) {
- const fileName = `lolisafe-${identifier}.zip`;
+ const fileName = `chibisafe-${identifier}.zip`;
return res.download(filePath, fileName);
}
}
@@ -77,7 +77,7 @@ class albumGET extends Route {
.update('zippedAt', db.fn.now());
const filePath = path.join(__dirname, '../../../../', process.env.UPLOAD_FOLDER, 'zips', `${album.userId}-${album.id}.zip`);
- const fileName = `lolisafe-${identifier}.zip`;
+ const fileName = `chibisafe-${identifier}.zip`;
return res.download(filePath, fileName);
} catch (error) {
log.error(error);
diff --git a/src/api/routes/albums/albumsGET.js b/src/api/routes/albums/albumsGET.js
index 93a23e3..8d238a9 100644
--- a/src/api/routes/albums/albumsGET.js
+++ b/src/api/routes/albums/albumsGET.js
@@ -11,7 +11,7 @@ class albumsGET extends Route {
/*
Let's fetch the albums. This route will only return a small portion
of the album files for displaying on the dashboard. It's probably useless
- for anyone consuming the API outside of the lolisafe frontend.
+ for anyone consuming the API outside of the chibisafe frontend.
*/
const albums = await db
.table('albums')
diff --git a/src/api/routes/auth/loginPOST.js b/src/api/routes/auth/loginPOST.js
index 71867f0..373252b 100644
--- a/src/api/routes/auth/loginPOST.js
+++ b/src/api/routes/auth/loginPOST.js
@@ -34,7 +34,7 @@ class loginPOST extends Route {
Create the jwt with some data
*/
const jwt = JWT.sign({
- iss: 'lolisafe',
+ iss: 'chibisafe',
sub: user.id,
iat: moment.utc().valueOf()
}, process.env.SECRET, { expiresIn: '30d' });