You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const result =service.subtraction(body.a, body.b);
121
+
returnres.json({
122
+
result,
123
+
});
123
124
});
124
125
125
126
app.listen(port, () => {
126
-
console.log(`App listening on port: ${port}`);
127
+
console.log(`App listening on port: ${port}`);
127
128
});
128
129
```
129
130
@@ -134,24 +135,24 @@ From the exmaple above, you will get the following output from running a build:
134
135
```typescript
135
136
// dist/Time/src/api.js
136
137
137
-
import*asexpressfrom'express';
138
+
import*asexpressfrom"express";
138
139
139
-
import*asservicefrom'./service.js';
140
+
import*asservicefrom"./service.js";
140
141
141
142
const app =express();
142
143
const port =3000;
143
144
144
145
app.use(express.json());
145
146
146
-
app.get('/api/v2/maths/time', (req, res) => {
147
-
const result =service.time();
148
-
returnres.json({
149
-
result
150
-
});
147
+
app.get("/api/v2/maths/time", (req, res) => {
148
+
const result =service.time();
149
+
returnres.json({
150
+
result,
151
+
});
151
152
});
152
153
153
154
app.listen(port, () => {
154
-
console.log(`App listening on port: ${port}`);
155
+
console.log(`App listening on port: ${port}`);
155
156
});
156
157
```
157
158
@@ -163,9 +164,10 @@ We welcome contributions from the community. Please read our [contributing guide
163
164
164
165
This project is in the early stages of development. We are actively working on the project and will be releasing new features and improvements regularly, which may include a rewrite into a more efficient and generic language like Rust or Go. Please check our issues and project board for more information, and don't for.
165
166
166
-
-[x]Support for NodeJS/Typescript and ExpressJS
167
+
-[x]Limited support for NodeJS/Typescript (no require or dynamic imports, no decorators)
167
168
-[x] Simple UI
168
-
-[ ] NestJS support
169
+
-[x] Support NodeJS require and dynamic imports
170
+
-[ ] Full support for NodeJS/Typescript
169
171
-[ ] Python support with Flask
170
172
-[ ] Django support
171
173
-[ ] Full python support
@@ -181,4 +183,4 @@ NanoAPI is a fair-source project. Because of this, we feel it would be unethical
181
183
- Money from the pool will be distributed to contributors
182
184
- At the end of the year, any remaining money will be donated to a charity of the community's choice
183
185
184
-
We will post regular updates on how much money is in the pool and how it is being distributed.
186
+
We will post regular updates on how much money is in the pool and how it is being distributed.
0 commit comments