-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from porters-xyz/develop
Release TKN Api Update
- Loading branch information
Showing
22 changed files
with
6,747 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`); | ||
}); |
Oops, something went wrong.