Skip to content

Commit 5e30a79

Browse files
ChanChan
Chan
authored and
Chan
committed
finished POST route
1 parent 4ad549b commit 5e30a79

File tree

5 files changed

+592
-9
lines changed

5 files changed

+592
-9
lines changed

FileStructure1.png

-5.53 KB
Binary file not shown.

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const express = require('express')
22
const bodyParser = require('body-parser');
33
const nunjucks = require('nunjucks');
44
const stripe = require('stripe')('sk_test_5wRrRkW71NRhb4cIHdRL9Z32');
5+
const router = require("./router")
56
const app = express();
67

78
app.get('/', (req, res) => {
@@ -22,8 +23,6 @@ app.use(bodyParser());
2223
app.engine('html', nunjucks.render);
2324
nunjucks.configure('views', { noCache: true });
2425

25-
const router = express.Router();
26-
2726
app.use('/', router)
2827

2928
router.get('/stripe-form', function (req, res, next) {

0 commit comments

Comments
 (0)