Skip to content

Commit

Permalink
Merge pull request #37 from Gosrock/dev
Browse files Browse the repository at this point in the history
티켓 url 주소 변경,입금자명 조건 수정
  • Loading branch information
ImNM authored Feb 1, 2022
2 parents 28f09c9 + d2543f5 commit 26822e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/routes/RoutePostTickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ const moment = require('moment');
const { ServerCommonError, CustomError } = require('../errors');
const { Ticket } = require('../model');

const url = 'https://gosrock.link/ticket/';
const url = 'https://gosrock.link/tickets/';
RoutePostTickets.post(
'/tickets',
userAuthentication,
[
body('ticketCount')
.isInt()
.withMessage('ticketCount 0이상 10이하의 정수로 필요합니다.'),
body('accountName').isString().withMessage('accountName 숫자로 필요합니다.')
body('accountName')
.isString()
.withMessage('accountName 숫자로 필요합니다.')
.isLength({ min: 2, max: 4 })
.withMessage('name 길이는 3자이어야 합니다.')
],
validationCatch,
async (req, res, next) => {
Expand Down

0 comments on commit 26822e3

Please sign in to comment.