Skip to content

Commit

Permalink
Merge pull request #8 from 9JIIIIIN9/main
Browse files Browse the repository at this point in the history
index에 get요청 추가
  • Loading branch information
hyunjin1109 authored Jun 8, 2024
2 parents 950209c + 948209c commit 7b9aa0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions my-replicate-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ async function runReplicateModel(url, prompt) {
throw error;
}
}
app.get("/", (req, res) => {
res.send("Hello from the server!");
});

app.post("/upload-to-ipfs", upload.single("image"), async (req, res) => {
if (req.file) {
Expand Down

0 comments on commit 7b9aa0a

Please sign in to comment.