Add get gauntlets endpoint
This commit is contained in:
6 files changed
+103
-1
No files matched your search
@@ -1,9 +1,23 @@
|
||||
import { Elysia } from 'elysia'
|
||||
import { jsonResponse } from './lib/util'
|
||||
|
||||
import { handler as gauntletsGetHandler } from './routes/gauntlets/get'
|
||||
|
||||
const app = new Elysia()
|
||||
|
||||
app.listen(3692)
|
||||
|
||||
app.get('/gauntlets', gauntletsGetHandler)
|
||||
app.all('*', () =>
|
||||
jsonResponse(
|
||||
{
|
||||
success: false,
|
||||
message: 'Endpoint not found (are you using the correct request method?)'
|
||||
},
|
||||
404
|
||||
)
|
||||
)
|
||||
|
||||
console.log(
|
||||
`Geometry Dash API Server started on http://${app.server?.hostname}:${app.server?.port}/`
|
||||
)
|
||||
Reference in new issue
Block a user