Refactor API and schema paths, fix key usage and profile data
Renamed 'mojangapi' directories to 'api' for both routes and schemas to standardize API structure. Updated serverService to use the correct public key (profilePropertyKeys) for server metadata. Fixed sessionsService to return full skin and cape data arrays instead of just the first element.
This commit is contained in:
10
routes/api/profiles/minecraft.js
Normal file
10
routes/api/profiles/minecraft.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const express = require("express")
|
||||
const userService = require("../../../services/userService")
|
||||
const router = express.Router()
|
||||
|
||||
router.post("/", async (req, res) => {
|
||||
const profiles = await userService.bulkLookup(req.body)
|
||||
return res.status(200).json(profiles)
|
||||
})
|
||||
|
||||
module.exports = router
|
||||
Reference in New Issue
Block a user