Compare commits

...

2 Commits

Author SHA1 Message Date
8983f0dd80 Started working on database plugin 2023-06-06 10:11:49 -05:00
8c296654a7 Added 'action' to form tag 2023-06-06 10:11:29 -05:00
2 changed files with 10 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
<body>
<div id="root">
<h1>Link Shortener</h1>
<form id="form">
<form id="form" action="result.js">
<label for="url">URL:</label><span class="mandatory">*</span>
<input type="text" name="url" id="URL" value="example.com" required><br><br>
@@ -26,4 +26,4 @@
<script src="index.js"></script>
</div>
</body>
</html>
</html>

8
result.js Normal file
View File

@@ -0,0 +1,8 @@
const cassandra = require('cassandra-driver');
const client = new cassandra.Client({
contactPoints: ['127.0.0.1:9042'],
keyspace: 'glink',
});
const query =