This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
qoverflow/server/routes/mail.js
2022-08-18 14:49:49 -04:00

14 lines
401 B
JavaScript

const express = require('express');
const router = express.Router();
const tokenAuth = require('server/middleware/tokenAuth');
const GetMail = require('./mail/Get');
const SendMail = require('./mail/Send');
const ReadMail = require('./mail/Read');
router.get('/', tokenAuth, GetMail);
router.post('/', tokenAuth, SendMail);
router.patch('/:mail_id', tokenAuth, ReadMail);
module.exports = router;