Commit da877c7b authored by Kulpybaev Ilyas's avatar Kulpybaev Ilyas

Fix get articles

parent 04ff1da5
This source diff could not be displayed because it is too large. You can view the blob instead.
import express from 'express';
import express from 'express';
import { Application, RequestHandler } from 'express';
import { AppInit } from './interfaces/AppInit.interface';
import { IRoute } from './interfaces/IRoute.interface';
......
......@@ -9,7 +9,7 @@ export class ArticleController {
}
getAllArticles: RequestHandler = (req, res): void => {
const articles = this.service.getAllArticles;
const articles = this.service.getAllArticles();
res.send(articles);
};
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment