style: code style

This commit is contained in:
wonderlandpark 2021-04-29 16:38:06 +09:00
parent a94de53156
commit cd7fa0d8b5
No known key found for this signature in database
GPG Key ID: E3E650B146478C64
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { NextApiRequest} from 'next'
import { NextApiRequest } from 'next'
import rateLimit from 'express-rate-limit'
import { get } from '@utils/Query'

View File

@ -1,10 +1,10 @@
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next'
import { NextApiHandler } from 'next'
import { getMainGuild } from '@utils/DiscordBot'
import RequestHandler from '@utils/RequestHandler'
const HelloWorld: NextApiHandler = (_req: NextApiRequest, res: NextApiResponse) => {
const HelloWorld: NextApiHandler = RequestHandler().all(async (req, res) => {
getMainGuild() // Load Discord Bot
res.statusCode = 200
res.json({ happy: 'hacking' })
}
res.status(200).json({ happy: 'hacking' })
})
export default HelloWorld