mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 22:10:24 +00:00
style: code style
This commit is contained in:
parent
a94de53156
commit
cd7fa0d8b5
@ -1,4 +1,4 @@
|
||||
import { NextApiRequest} from 'next'
|
||||
import { NextApiRequest } from 'next'
|
||||
import rateLimit from 'express-rate-limit'
|
||||
|
||||
import { get } from '@utils/Query'
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user