Skip to content

Commit

Permalink
improve api comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharqiewicz committed Aug 30, 2024
1 parent f34bf3a commit f997257
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signer-service/src/api/middlewares/validators.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { TOKEN_CONFIG } = require('../../constants/tokenConfig');
const { SHEET_HEADER_VALUES } = require('../controllers/storage.controller');
const { DUMP_SHEET_HEADER_VALUES } = require('../controllers/storage.controller');
const { EMAIL_SHEET_HEADER_VALUES } = require('../controllers/email.controller');

const validateCreationInput = (req, res, next) => {
Expand Down Expand Up @@ -47,7 +47,7 @@ const validateInputHeaderValues = (requiredHeaders) => (req, res, next) => {
next();
};

const validateStorageInput = validateInputHeaderValues(SHEET_HEADER_VALUES);
const validateStorageInput = validateInputHeaderValues(DUMP_SHEET_HEADER_VALUES);
const validateEmailInput = validateInputHeaderValues(EMAIL_SHEET_HEADER_VALUES);

const validatePreSwapSubsidizationInput = (req, res, next) => {
Expand Down
13 changes: 13 additions & 0 deletions signer-service/src/api/routes/v1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,27 @@ router.get('/status', sendStatusWithPk);
* POST v1/stellar
*/
router.use('/stellar', stellarRoutes);


/**
* POST v1/pendulum
*/
router.use('/pendulum', pendulumRoutes);

/**
* POST v1/storage
*/
router.use('/storage', storageRoutes);

/**
* POST v1/email
*/
router.use('/email', emailRoutes);


/**
* POST v1/subsidize
*/
router.use('/subsidize', subsidizeRoutes);

module.exports = router;

0 comments on commit f997257

Please sign in to comment.