mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
refactor: split api into api, api-cli & api-plugin
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user