Switch to Koa, more es6
This commit is contained in:
parent
1090affc9c
commit
b3abff99ae
36 changed files with 25573 additions and 928 deletions
|
@ -1,10 +1,10 @@
|
|||
"use strict";
|
||||
var path = require("path");
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
|
||||
var services = [];
|
||||
|
||||
require("fs").readdirSync(path.join(__dirname, "services")).forEach(function(file) {
|
||||
var service = require(path.join(__dirname, "services", file));
|
||||
fs.readdirSync(path.join(__dirname, 'services')).forEach(function(file) {
|
||||
var service = require(path.join(__dirname, 'services', file));
|
||||
if (service.search) {
|
||||
services.push(service);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue