This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nodemailer from "nodemailer"; | |
function setup() { | |
return nodemailer.createTransport({ | |
host: 'smtp.mailtrap.io', | |
port: 2525, | |
auth: { | |
user: '82c2a63f7c2386', | |
pass: '8ebe1c2712bb52' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nodemailer from "nodemailer"; | |
function setup() { | |
return nodemailer.createTransport({ | |
host: 'smtp.mailtrap.io', | |
port: 2525, | |
auth: { | |
user: '82c2a63f7c2386', | |
pass: '8ebe1c2712bb52' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Syncano from 'syncano-server' | |
import crypto from 'crypto' | |
export default (ctx) => { | |
const {data,response} = Syncano(ctx) | |
if (ctx.args.sender && ctx.args.receiver && ctx.args.wishes) { | |
data.wishes.create({ | |
sender: ctx.args.sender, | |
receiver: ctx.args.receiver, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Christmas2017 | |
description: Socket for christmas 2017 from Polarbits with love. | |
version: 0.0.1 | |
classes: | |
wishes: | |
- name: sender | |
type: string | |
- name: receiver | |
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Syncano from 'syncano-server' | |
export default (ctx) => { | |
const {response,data} = Syncano(ctx) | |
if(ctx.args.wish){ | |
data.wishes.where("cryptoId", ctx.args.wish).list() | |
.then(wishes=>{ | |
response.json({wishes}) | |
}) | |
} |