Skip to content

Commit

Permalink
Merge pull request #349 from porters-xyz/develop
Browse files Browse the repository at this point in the history
Release TKN Api Update
  • Loading branch information
scermat committed Aug 28, 2024
2 parents 5c38a1d + c103305 commit 050aa6e
Show file tree
Hide file tree
Showing 22 changed files with 6,747 additions and 97 deletions.
21 changes: 21 additions & 0 deletions apis/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const express = require('express');
const cors = require('cors');
require('dotenv').config();
const app = express();

// Import the tkn routes
const tknRoutes = require('./tkn/tkn');

app.use(cors());
app.use(express.json());

// Define the TKN Api routes and Swagger
app.use('/tkn/v1', tknRoutes);
const setupTknSwagger = require('./tkn/tkn-swagger'); // Import Swagger setup
setupTknSwagger(app);

// Start server
const port = process.env.PORT || 3000;
app.listen(port, () => {
console.log(`Server running on port ${port}`);
});
Loading

0 comments on commit 050aa6e

Please sign in to comment.