Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api for space craft mission
Browse files Browse the repository at this point in the history
Anin Arafath authored and Anin Arafath committed Apr 15, 2023
1 parent bd1617d commit 2d04bbe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/spacecraft_missions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const fs = require("fs");

let launchers = require("../data/spacecraft_missions.json");

module.exports = async (req, res) => {
try {
res.send(launchers);
} catch (error) {
res.status(500);
const response = error.response || {};
res.send({
message: error.message,
response,
});
}
};

0 comments on commit 2d04bbe

Please sign in to comment.