diff --git "a/Icon\r" "b/Icon\r"
new file mode 100644
index 0000000..e69de29
diff --git a/functions/index.js b/functions/index.js
index 7101f66..bd47c9f 100644
--- a/functions/index.js
+++ b/functions/index.js
@@ -9,7 +9,7 @@ var serviceAccount = require("./project-gg-3b754-firebase-adminsdk-4848h-5a5778b
var firebaseadmin = admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: "https://project-gg-3b754.firebaseio.com"
-});
+})
var database = firebaseadmin.database()
var app = express()
@@ -218,4 +218,8 @@ app.post('/ship-api', function(request, responce){
}
})
+app.get('*', function(request, responce){
+ responce.render('404.ejs')
+})
+
exports.application = functions.https.onRequest(app)
\ No newline at end of file
diff --git a/functions/views/404.ejs b/functions/views/404.ejs
index 03c4b3e..5b13ff1 100644
--- a/functions/views/404.ejs
+++ b/functions/views/404.ejs
@@ -59,10 +59,8 @@
-
-
-
It's a 404!
-
Home
+
diff --git a/functions/views/css/style.css b/functions/views/css/style.css
index 41a071b..ed08667 100644
--- a/functions/views/css/style.css
+++ b/functions/views/css/style.css
@@ -606,4 +606,12 @@ footer a {
}
.ship-btn button:active {
background-color: #00CCEE;
+}
+
+.e404 {
+ width: 100%;
+}
+
+.e404 svg {
+ width: 100%;
}
\ No newline at end of file
diff --git a/server.js b/server.js
index c4493f1..74c3f13 100644
--- a/server.js
+++ b/server.js
@@ -7,7 +7,7 @@ var serviceAccount = require("./secrets/project-gg-3b754-firebase-adminsdk-4848h
var firebaseadmin = admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: "https://project-gg-3b754.firebaseio.com"
-});
+})
var database = firebaseadmin.database()
var auth = admin.auth();
@@ -224,6 +224,10 @@ app.post('/ship-api', function(request, responce){
}
})
+app.get('*', function(request, responce){
+ responce.render('404.ejs')
+})
+
var port = 5000
app.listen(port, function() {