-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
25 lines (19 loc) · 760 Bytes
/
app.js
File metadata and controls
25 lines (19 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const express = require('express');
const app = express();
const path = require('path');
const hosted = require('./routes/hostedauth');
const native = require('./routes/nativeauth');
require('dotenv').config()
app.set('view engine', 'pug')
app.set("views", path.join(__dirname, "views"));
app.listen(3000, () => {
console.log("\nApplication started and Listening at http://localhost:3000/\n".inverse.green);
});
app.get('/', (request, response) => {
response.render('index');
});
app.get('/hostedauth', hosted.hostedAuth);
app.get('/success-hostedauth-server', hosted.hostedAuthSuccess);
app.get('/nativelanding', native.nativeAuthLadingPage);
app.get('/nativeauth', native.nativeAuth);
app.get('/success-native-auth', native.nativeAuthSuccess);