Skip to content

Commit

Permalink
naming for api
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoriopalama committed Mar 7, 2024
1 parent 2496866 commit c52dda5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions functions/src/api/http/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ app.addContentTypeParser('application/json', { parseAs: 'string' }, (req, body,
app.get('/hello', async (req, res) => {
return "hello";
});
app.get('/', async (req, res) => {
return "hello root";
});

export default onRequest((req, res) => {
app.ready((err) => {
Expand Down
2 changes: 1 addition & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as http_api from './api/http/api';

export { http_api };
exports.http_api = http_api.default;

0 comments on commit c52dda5

Please sign in to comment.