Skip to content

Commit

Permalink
Tried to comply a bit with CesiumJS coding.
Browse files Browse the repository at this point in the history
.editorconfig: copied from CesiumJS project.
Reindented according to EditorConfig.
Converted quotes into double quotes.
  • Loading branch information
pupitetris committed Jul 20, 2023
1 parent 622bbfb commit 9bbe88b
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 240 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.glsl]
indent_size = 4
14 changes: 7 additions & 7 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const Express = require('express');
const Morgan = require('morgan');
const Express = require("express");
const Morgan = require("morgan");

const PORT = 8001;

const app = Express();

app.use(Morgan('common'));
app.use(Morgan("common"));
app.use(Express.urlencoded({ extended: true }));

app.use('/', Express.static(__dirname + '/htdocs'));
app.use('/src', Express.static(__dirname + '/src'));
app.use('/cesium', Express.static(__dirname + '/node_modules/cesium/Build/CesiumUnminified'));
app.get('/', (req, res) => { res.redirect('index.html'); });
app.use("/", Express.static(__dirname + "/htdocs"));
app.use("/src", Express.static(__dirname + "/src"));
app.use("/cesium", Express.static(__dirname + "/node_modules/cesium/Build/CesiumUnminified"));
app.get("/", (req, res) => { res.redirect("index.html"); });

app.listen(PORT);
Loading

0 comments on commit 9bbe88b

Please sign in to comment.