Skip to content

Commit

Permalink
Release 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LukvonStrom committed Dec 26, 2017
1 parent 60f8c93 commit c0855ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "designhub-api",
"version": "1.6.1",
"version": "1.7.0",
"description": "REST API written in TypeScript using express and mysql",
"author": "designhub",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ app.use(cors({
origin: true
}));

app.use('/documentation', express.static(path.join(__dirname, './apidoc')));
app.use('/docs', express.static(path.join(__dirname, './apidoc')));

app.use((req, res, next) => {
const publicEndpoints: Array<string> = ['/', '/topdesign/posts/month', '/levels', '/donate', '/topdesign/posts/currentmonth'];
Expand Down
8 changes: 3 additions & 5 deletions src/config-rewrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ export = {
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: process.env.DB_DATABASE
database: process.env.DB_DATABASE,
},
imgur: {
clientID: process.env.IMGUR_CLIENT_ID,
clientSecret: process.env.IMGUR_CLIENT_SECRET
},
env: process.env.ENVIRONMENT,
development: process.env.ENVIRONMENT.includes('development'),
mysql_development: () => {
if (process.env.SQL_DEBUG && this.development) { return true; }
}
development: process.env.ENVIRONMENT.includes('development')

};
2 changes: 1 addition & 1 deletion src/services/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Connection {
user: conf.mysql.user,
password: conf.mysql.password,
database: conf.mysql.database,
debug: conf.mysql_development
debug: conf.development
});

con.on('error', function (err) {
Expand Down

0 comments on commit c0855ae

Please sign in to comment.