This commit is contained in:
2024-12-16 16:51:46 +02:00
parent e264956831
commit 96fbfb60e8
16 changed files with 250 additions and 295 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
import express from 'express';
/**
* Asset controller plugin
* Asset controller plugin, граничен клас за обработка на заявките към игрови активи
*/
class AssetController{
@@ -9,15 +9,15 @@ class AssetController{
route = '/asset'
/**
* Initializes the AssetController plugin
* @param {App} app The application instance
* Initializes the AssetController plugin, инициализация
* @param {App} app The application instance, апликация
*/
init(app){
const router = express.Router();
const {config} = app;
/**
* API: GET /asset/:type/:id Retrieve asset by type and ID
* API: GET /asset/:type/:id Retrieve asset by type and ID, извличане на актив по подаден идентификатор
* @function read
* @param {string} type Type can be "source", "default" or "thumb"
* @param {string} id The name of the asset