Rename project

This commit is contained in:
2022-07-02 22:22:57 +02:00
parent 6f710d7faa
commit 14f3a9980d
6 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
# Athena 🧠 # API 🧠
Athena is my personal api connected to my instances Artdanj-api is my personal api connected to my instances
## Features ✨ ## Features ✨
@@ -26,4 +26,4 @@ Athena is my personal api connected to my instances
## License 📑 ## License 📑
Copyright © 2020 - [@ArthurDanj](https://arthurdanjou.fr) \ Copyright © 2020 - [@ArthurDanj](https://arthurdanjou.fr) \
This project is [MIT](https://github.com/ArthurDanjou/athena/blob/master/LICENSE) Licensed. This project is [MIT](https://github.com/ArthurDanjou/artdanj-api/blob/master/LICENSE) Licensed.

View File

@@ -33,7 +33,7 @@ export default class SongsController {
public async callback({ request, response }: HttpContextContract) { public async callback({ request, response }: HttpContextContract) {
if (await setupSpotify(request.qs().code)) { if (await setupSpotify(request.qs().code)) {
return response.status(200).send({ return response.status(200).send({
message: 'Athena successfully connected to Spotify', message: 'API successfully connected to Spotify',
}) })
} }
} }

View File

@@ -36,7 +36,7 @@ export async function updateGithubReadmeStats(): Promise<void> {
sha: readme.sha, sha: readme.sha,
}, },
{ {
reason: '📊 Updated Statistics - Athena', reason: '📊 Updated Statistics - API',
error: 'Error while updating statistics', error: 'Error while updating statistics',
}) })
} }
@@ -70,7 +70,7 @@ Listening from **${current_song.device_name}**\n`
sha: readme.sha, sha: readme.sha,
}, },
{ {
reason: '🎵 Updated Song - Athena', reason: '🎵 Updated Song - API',
error: 'Error while updating song', error: 'Error while updating song',
}) })
} }
@@ -98,7 +98,7 @@ async function updateReadmeContent(new_readme: GithubRequest, reason: GithubReas
content: Buffer.from(new_readme.content, 'utf8').toString('base64'), content: Buffer.from(new_readme.content, 'utf8').toString('base64'),
sha: new_readme.sha, sha: new_readme.sha,
author: { author: {
name: 'Athena - API Automation', name: 'API - API Automation',
email: 'api@arthurdanjou.fr', email: 'api@arthurdanjou.fr',
}, },
}, },

View File

@@ -40,7 +40,7 @@ const redisConfig: RedisConfig = {
port: Env.get('REDIS_PORT'), port: Env.get('REDIS_PORT'),
password: Env.get('REDIS_PASSWORD', ''), password: Env.get('REDIS_PASSWORD', ''),
db: Env.get('REDIS_DB', 0), db: Env.get('REDIS_DB', 0),
keyPrefix: 'athena:', keyPrefix: 'api:',
healthCheck: true, healthCheck: true,
}, },
}, },

View File

@@ -36,7 +36,7 @@ const sessionConfig: SessionConfig = {
| The name of the cookie that will hold the session id. | The name of the cookie that will hold the session id.
| |
*/ */
cookieName: 'athena-session', cookieName: 'artdanj-api-session',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@@ -1,5 +1,5 @@
{ {
"name": "athena", "name": "api",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {