working on reading form data
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
const express = require("express");
|
const express = require("express");
|
||||||
const cors = require("cors");
|
const cors = require("cors");
|
||||||
|
const fs = require("fs");
|
||||||
|
|
||||||
const applications = require('../src/apps.json');
|
const applications = require('../src/apps.json');
|
||||||
const links = require('../src/links.json');
|
const links = require('../src/links.json');
|
||||||
@@ -39,6 +40,8 @@ app.get("/sui/api/messages", (req, res) => {
|
|||||||
res.status(200).send(messages.messages);
|
res.status(200).send(messages.messages);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// app is listening on port 5000
|
// app is listening on port 5000
|
||||||
app.listen(5000, () => {
|
app.listen(5000, () => {
|
||||||
console.log("node server is running on port 5000");
|
console.log("node server is running on port 5000");
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ function ProviderSettings() {
|
|||||||
</form>
|
</form>
|
||||||
<button onClick={handleSubmit} type="submit" form="providersForm" value="submit">Save</button>
|
<button onClick={handleSubmit} type="submit" form="providersForm" value="submit">Save</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user