Skip to content

Instantly share code, notes, and snippets.

View andidp's full-sized avatar

AndiDePe andidp

View GitHub Profile
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Question extends Model
{
/**
* Get the answers for the blog post.
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Answer extends Model
{
/**
* Get the question that owns the answer.
@andidp
andidp / endpoint.js
Created January 23, 2020 06:26
Routing Email Template
app.get('/v1/email_templates/:lang', UPLOAD_CONFIG.common, (req, res) => {
if (req.auth !== false) {
emailTemplate.getEmailTemplates(req, response => logSentResponse(req, res, response));
}
});
app.get('/v1/email_templates/:name/:lang', UPLOAD_CONFIG.common, (req, res) => {
if (req.auth !== false) {
emailTemplate.getEmailTemplate(req, response => logSentResponse(req, res, response));
}