mirror of
https://github.com/anatolykopyl/movieroom-core.git
synced 2026-03-26 04:44:53 +00:00
Note to self: check domain before starting new project
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user