arangodb - Arango/Foxx server static file -
after though arango doc's not find clear how server html file. case planning using arango server file nginx better job arango hold data need known if page should legal.
controller.get('/:id', function (req, res){ var id = req.urlparameters.id; if(res.json(db.tire_user.byexample({"uid":id}).toarray()[0]);){ //here needs server static html file } }) .pathparam('id', useridschema);
currently proposed way load contents of file disk using fs module: https://docs.arangodb.com/modulefs/index.html
Comments
Post a Comment