Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
436 changes: 436 additions & 0 deletions components/Verify/VerifyPage.jsx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@nextui-org/react": "^2.4.1",
"@nextui-org/system": "^2.2.1",
"@react-pdf/renderer": "^4.3.0",
"@vercel/analytics": "^1.3.1",
"@vercel/analytics": "^2.0.1",
"axios": "^1.7.3",
"dotenv": "^16.4.5",
"ionicons": "^7.3.1",
Expand Down
6 changes: 6 additions & 0 deletions pages/verify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from "react";
import VerifyPage from "@/components/Verify/VerifyPage";

const Verify = () => <VerifyPage />;

export default Verify;
18 changes: 18 additions & 0 deletions pages/verify/[id].js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";
import VerifyPage from "@/components/Verify/VerifyPage";

const VerifyById = ({ certificateId }) => {
return <VerifyPage initialCertificateId={certificateId || ""} />;
};

export async function getServerSideProps(context) {
const { id } = context.params;

return {
props: {
certificateId: typeof id === "string" ? id : "",
},
};
}

export default VerifyById;
11 changes: 6 additions & 5 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://githubsrmist.in</loc><lastmod>2025-12-02T08:58:50.626Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/about</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/contact</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/events</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/team</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in</loc><lastmod>2026-04-05T07:30:16.240Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/about</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/contact</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/events</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/team</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.in/verify</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
1 change: 1 addition & 0 deletions utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const API_ENDPOINTS = {
CERTIFICATES: {
GENERATE: `${API_BASE_URL}/api/certificate/generate`, // POST - Generate a certificate for an event participant
DOWNLOAD: (certificateId) => `${API_BASE_URL}/api/certificate/download/${certificateId}?format=pdf`, // GET - Download a verified certificate (External)
VERIFY: (certificateId) => `${API_BASE_URL}/api/certificate/verify/${certificateId}`, // GET - Verify certificate authenticity
},
};
export const API_CONFIG = {
Expand Down
Loading
Loading