Note to self: check domain before starting new project

This commit is contained in:
2022-01-04 02:52:34 +03:00
parent 473e526ac5
commit 4cb243b185
3 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
# W2G API # Movieroom API
API for [watch2gether](https://github.com/anatolykopyl/watch2gether-front). API for [movieroom](https://github.com/anatolykopyl/movieroom-front).
Also contains movie streaming server. Also contains movie streaming server.

View File

@@ -1,5 +1,5 @@
{ {
"name": "watch2gether-core", "name": "movieroom-core",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",

View File

@@ -14,7 +14,9 @@ const RoomModel = model<Room>('Room', roomSchema);
const tCli = new WebTorrent(); const tCli = new WebTorrent();
const router = new Router({ prefix: '/api' }); const router = new Router({ prefix: '/api' });
const koaBody = KoaBody({ multipart: true }); const koaBody = KoaBody({ multipart: true, formidable: {
maxFileSize: 2.5 * 10 ** 9,
} });
router.post('/roomMagnet', async (ctx) => { router.post('/roomMagnet', async (ctx) => {
if (ctx.request.body.magnet) { if (ctx.request.body.magnet) {