Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Sahith-Symph
/
NodeJs
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
NodeJs
/
postController.js
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
8 lines (7 loc) · 181 Bytes
main
Breadcrumbs
NodeJs
/
postController.js
Copy path
Top
File metadata and controls
Code
Blame
8 lines (7 loc) · 181 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
const posts =[
{id:1 , title:'Post one'},
{id:2 , title:'Post two'}
];
const getPosts =() => posts;
export const getPostsLength =()=> posts.length;
export default getPosts;
You can’t perform that action at this time.