ddstats-server/api/api.js

24 lines
475 B
JavaScript

import { Router } from 'express'
import finishApi from './finishes.js'
import mapApi from './maps.js'
import playerApi from './players.js'
const api = Router()
api.get(
'/',
(req, res) => res.json({
success: true,
response: "You connected to DDStats API! :D"
})
)
api.use('/finishes', finishApi)
api.use('/maps', mapApi)
api.use('/players', playerApi)
/**
* This module is the entrypoint for the API.
* @module api/api
*/
export default api