Skip to content

Commit

Permalink
API Boiler plate, Removed smoothscroll.js
Browse files Browse the repository at this point in the history
  • Loading branch information
OudomMunint committed Aug 31, 2023
1 parent 0f4aa3f commit 3d6d8e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- name: Create Release
uses: ncipollo/[email protected]
with:
tag: v1.5.5.1
tag: v1.5.5.2
18 changes: 18 additions & 0 deletions API/API.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const API = {
// Get all proj
async getAllPosts() {
const response = await fetch(
""
);
const data = await response.json();
return data;
},
// Get proj via id
async getPostById(id) {
const response = await fetch(
``
);
const data = await response.json();
return data;
},
};
Empty file removed js/smoothscroll.js
Empty file.

0 comments on commit 3d6d8e0

Please sign in to comment.