Skip to content
Snippets Groups Projects
Commit ed42c9f8 authored by chif's avatar chif Committed by Chif Gergő
Browse files

Create routes for news api

parent a8f31b90
No related branches found
No related tags found
2 merge requests!10Feature/12 dev auto deploy,!6Feature/news api
import { Application } from 'express';
import getNewsListMiddleware from '../middlewares/news/getNewsList';
export default (app: Application): void => {
app.get('/news',
getNewsListMiddleware()
);
app.post('/news'
);
app.get('/news/:id'
);
app.post('/news/:id'
);
app.delete('/news/:id'
);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment