Skip to content

Commit

Permalink
Modified servers/tests/gifs.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JustineRobert committed Nov 22, 2019
1 parent 6e2a754 commit 0a6dcb0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions servers/routers/gifs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import express from 'express';
import validation from '../middlewares/SchemaValidator';
import Auth from '../middlewares/auth';

const gifs = new express.Router();
gifs.use(Auth.verifyToken);
gifs.use(validation);
/* Gifs APIs */
gifs.route('/gifs').post();
gifs.route('/gifs/:gifId').delete();
gifs.route('/gifs/:gifId').get();
gifs.route('/gifs/:gifId/comments').post();

export default gifs;

0 comments on commit 0a6dcb0

Please sign in to comment.