initial
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import express from 'express';
|
||||
import fs from 'fs';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import multipart from 'connect-multiparty';
|
||||
|
||||
const multipartMiddleware = multipart();
|
||||
class GameObjectsApi{
|
||||
|
||||
name = 'gameObjectsApi'
|
||||
route = '/api/game-object'
|
||||
|
||||
init(app){
|
||||
const { am, config } = app;
|
||||
const router = express.Router();
|
||||
router.put('/', multipartMiddleware, async (req, res)=>{
|
||||
try{
|
||||
}catch(err){
|
||||
}
|
||||
});
|
||||
|
||||
app.webServer.xapp.use(this.route, router);
|
||||
}
|
||||
}
|
||||
|
||||
export {GameObjectsApi}
|
||||
Reference in New Issue
Block a user