Update create.ts

This commit is contained in:
Steve Ruiz 2022-05-19 12:03:06 +01:00
parent a9750d9dc6
commit c3fe36c2e7

View file

@ -61,7 +61,7 @@ export default async function CreateMultiplayerRoom(req: NextApiRequest, res: Ne
})
if (result.status === 200) {
// If success, send back the url for the new room
// If success, send back the url for the new multiplayer project
res.send({ status: 'success', message: result.statusText, url: '/r/' + roomId })
} else {
throw Error(result.statusText)