Browse Source

Add GlitchGit integration

master
Tiana Lemesle 4 weeks ago
parent
commit
2040b3b15d
3 changed files with 1937 additions and 1827 deletions
  1. +1
    -0
      index.js
  2. +1
    -0
      package.json
  3. +1935
    -1827
      yarn.lock

+ 1
- 0
index.js View File

@@ -6,6 +6,7 @@ const fastify = require('fastify')();

const searchAnalytics = new Analytics('search');

fastify.register(require('fastify-sentry'), { dsn: 'https://ddff463fd7ef7f52d11ff1ccd3887a7c@glitchgit.kaki87.net/1' });
fastify.register(require('fastify-static'), { root: require('path').join(__dirname, 'public') });
fastify.get('/categories', async (request, reply) => reply.send((await GPlay.categories()).sort()));
fastify.post('/search', async (request, reply) => {


+ 1
- 0
package.json View File

@@ -8,6 +8,7 @@
"dependencies": {
"anonymous-analytics": "https://git.kaki87.net/KaKi87/anonymous-analytics.git",
"fastify": "^3.4.1",
"fastify-sentry": "^1.4.0",
"fastify-static": "^3.2.0",
"google-play-scraper": "*"
},


+ 1935
- 1827
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save