Skip to content

Commit

Permalink
Merge pull request #348 from porters-xyz/tkn-api
Browse files Browse the repository at this point in the history
Tkn api
  • Loading branch information
scermat authored Aug 28, 2024
2 parents 180720c + e30b640 commit c103305
Show file tree
Hide file tree
Showing 17 changed files with 6,593 additions and 13 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 c103305

Please sign in to comment.