refactor: split api into api, api-cli & api-plugin

This commit is contained in:
2023-06-02 16:41:25 +02:00
parent 495a63977c
commit b21833de40
205 changed files with 1981 additions and 1492 deletions

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {Plugin} from '@openstapps/api';
import {Plugin} from '@openstapps/api-plugin';
import * as express from 'express';
import {SCMinimalRequest} from './protocol/request.js';
import {SCMinimalResponse} from './protocol/response.js';
@@ -28,7 +28,6 @@ export class MinimalPlugin extends Plugin {
* Calculates the sum of a list of numbers
*
* TODO: remove this function and write your own ones
*
* @param numbers the list of numbers
*/
private static sum(numbers: number[]): number {
@@ -40,7 +39,6 @@ export class MinimalPlugin extends Plugin {
*
* For this example the whole purpose of the plugin is to receive a list of numbers and return the sum of them.
* TODO: remove the body of the function and replace with your own logic
*
* @param request the express request object
* @param response the express response object
*/